in reply to Setting signal handlers considered unsafe?
Have you tried any of the signal stuff in POSIX? I'm thinking of sigprocmask in particular.
I'm no signal wizard, but try suspending the ALRM signal while you set the handler. When you reenable the ALRM handler, any pending ALRMs should be triggered.
Let us know what you come up with, I'm curious.
TGI says moo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting signal handlers considered unsafe?
by gnosek (Sexton) on Nov 05, 2008 at 20:49 UTC | |
by TGI (Parson) on Nov 05, 2008 at 23:32 UTC | |
by ig (Vicar) on Nov 11, 2008 at 17:41 UTC | |
by gnosek (Sexton) on Nov 12, 2008 at 13:24 UTC |