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
In reply to Re: Setting signal handlers considered unsafe?
by TGI
in thread Setting signal handlers considered unsafe?
by gnosek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |