2011/03/29

Linux Signal Handler

To register a signal handler in linux:
signal(SIGINT, signalhandler);

The signal handler will run in the main thread, main thread will be interrupted.

No comments:

Post a Comment

Post Code on Blogger

Simplest way to post code to blogger for me: <pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black;overflow-x:...