summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-02-21 20:49:28 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-02-21 20:49:28 +0000
commitadc5b77f4f3b56421d55fe50553a925942dd3abd (patch)
tree24f4bad84e29a0d8402ad76a7ebb84bff107e0cc /threadproc
parente4d95d836af0e84c51e9f8f5e7bac140d52b1f93 (diff)
downloadlibapr-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.c7
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 */
}