diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-01-21 10:32:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:43:55 -0500 |
commit | cf8eef4ad88af40d2cf147686c1877cd380b452c (patch) | |
tree | cab75b7549dde223cbb1ff6a185c9f7ce7a65b87 /source4/lib/replace/system | |
parent | c6174d5d6f9b2cfc29a1886a79ae72b5ab764c55 (diff) | |
download | samba-cf8eef4ad88af40d2cf147686c1877cd380b452c.tar.gz samba-cf8eef4ad88af40d2cf147686c1877cd380b452c.tar.bz2 samba-cf8eef4ad88af40d2cf147686c1877cd380b452c.zip |
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 1bb10b6cf7d717ad21834e73a4ca4b22b5fb6f0a)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r-- | source4/lib/replace/system/wait.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/system/wait.h b/source4/lib/replace/system/wait.h index 3855f7ae72..179ef0774e 100644 --- a/source4/lib/replace/system/wait.h +++ b/source4/lib/replace/system/wait.h @@ -40,4 +40,8 @@ #include <setjmp.h> #endif +#ifndef SA_RESETHAND +#define SA_RESETHAND SA_ONESHOT +#endif + #endif |