trawick 01/02/21 02:44:15
Modified: threadproc/unix signals.c
Log:
get APR apps to build again by fixing the unresolve reference to
apr_sigwait()
Revision Changes Path
1.20 +10 -2 apr/threadproc/unix/signals.c
Index: signals.c
===================================================================
RCS file: /home/cvs/apr/threadproc/unix/signals.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- signals.c 2001/02/21 01:15:48 1.19
+++ signals.c 2001/02/21 10:44:15 1.20
@@ -65,7 +65,6 @@
#include <assert.h>
#include <pthread.h>
-
apr_status_t apr_proc_kill(apr_proc_t *proc, int signum)
{
#ifdef OS2
@@ -276,7 +275,16 @@
while (1) {
int signal_received;
- apr_sigwait(&sig_mask, &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
+ {
+ /* handle sigwait() error here */
+ }
+
if (sig_func(signal_received) == 1) {
return NULL;
}