...
With the Compliant Solution for Unix, there there is no race condition that can be exploited by an attacker in sending a second signal. And that is because is because a second signal sent to the handler, before the latter calls before the latter calls signal(signum, SIG_DFL),
will merely cause the handler to cause the handler to restart, and call signal()
anyway.
Wiki Markup |
---|
This solution is an exception to \[[SIG34-C. Do not call signal() from within interruptible signal handlers]\]. |
Compliant Solution (POSIX)
...