Catch a linux signal in a C program | PROGRAMMING INTERVIEWS
When the signal occurs, the process has to tell the kernel what to do with it. Your process can ignore signal, catch signal or let the default action apply.Note: SIGKILL and SIGSTOP cannot be ignored.
If a process wishes to handle a signal then in the code, the process has to register a signal handling function to the kernel. The following is the prototype of a signal handling function :
Read full article from Catch a linux signal in a C program | PROGRAMMING INTERVIEWS
No comments:
Post a Comment