Quoting libc info page:
When a program is run by a shell, the shell normally sets the initial actions for the child process to `SIG_DFL' or `SIG_IGN', as appropriate. It's a good idea to check to make sure that the shell has not set up an initial action of `SIG_IGN' before you establish your own signal handlers. Are there any alternatives for a program that is run by the shell other than being exec'ed (by the shell)? In the case of the program being exec'ed by the shell, what is the importance of checking the initial actions that are set by the shell? I mean, exec resets the initial actions, doesn't it? In fact, how can the programmer check the actions that were set by the parent process? Bottom line is that I am confused about how the shell run programs and whether those programs inherit the signal handlers. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]