1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

r20930: use sigaction() instead of signal()

add support for sa_flags argument to event_add_signal(). These are
passed to sigaction(). Special handling is provided for SA_RESETHAND
(which tells the event system to remove the handler after the signal)
and SA_SIGINFO which allows the siginfo structure to be received per
signal
(This used to be commit 1bb10b6cf7)
This commit is contained in:
Andrew Tridgell
2007-01-21 10:32:39 +00:00
committed by Gerald (Jerry) Carter
parent c6174d5d6f
commit cf8eef4ad8
6 changed files with 154 additions and 65 deletions

View File

@@ -40,4 +40,8 @@
#include <setjmp.h>
#endif
#ifndef SA_RESETHAND
#define SA_RESETHAND SA_ONESHOT
#endif
#endif