Saurabh Srivastava
2005-09-27 15:48:51 UTC
Although it would make sense to treat all signals as equal, for the
purposes of testing and uniformity you are supposed to handle the signals
with the following priority:
1 - SIGKILL: handled separately anyway!
2 - SIGCHLD
3 - SIGUSR1
4 - SIGUSR2
ie, if you have a SIGCHLD and a SIGUSR2 pending then the SIGCHLD will be
handled before you go and handle SIGUSR2.
purposes of testing and uniformity you are supposed to handle the signals
with the following priority:
1 - SIGKILL: handled separately anyway!
2 - SIGCHLD
3 - SIGUSR1
4 - SIGUSR2
ie, if you have a SIGCHLD and a SIGUSR2 pending then the SIGCHLD will be
handled before you go and handle SIGUSR2.