diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-02-21 20:49:28 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-02-21 20:49:28 +0000 |
commit | adc5b77f4f3b56421d55fe50553a925942dd3abd (patch) | |
tree | 24f4bad84e29a0d8402ad76a7ebb84bff107e0cc /threadproc | |
parent | e4d95d836af0e84c51e9f8f5e7bac140d52b1f93 (diff) | |
download | libapr-adc5b77f4f3b56421d55fe50553a925942dd3abd.tar.gz |
Add apr_sigwait to the apr_private.h file. This allows us to remove
a couple of #ifdefs, and standardize some code. This macro comes directly
from the Apache code.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61277 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r-- | threadproc/unix/signals.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/threadproc/unix/signals.c b/threadproc/unix/signals.c index a96fded38..a192ebeee 100644 --- a/threadproc/unix/signals.c +++ b/threadproc/unix/signals.c @@ -278,12 +278,7 @@ static void *signal_thread_func(void *signal_handler) while (1) { int signal_received; -#ifdef SIGWAIT_TAKES_ONE_ARG - signal_received = sigwait(&sig_mask); - if (signal_received == -1) -#else - if (sigwait(&sig_mask, &signal_received) == -1) -#endif + if (apr_sigwait(&sig_mask, &signal_received) != 0) { /* handle sigwait() error here */ } |