Remember that sigsuspend puts the thread to sleep for signals that will arrive in the future. If the signal was not previously blocked (sigprocmask), and it happened before you waited for it, you won't get it.
Carefully review the entire set of signal-handling routines available and see if you're really using the right one for your intended application. (sigwaitinfo?)
|