httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject RE: perchild mpm on FreeBSD 4.2
Date Wed, 21 Feb 2001 19:10:20 GMT
---Charles Randall [mailto:crandall@matchlogic.com] said:
> server/mpm/perchild/.libs/libperchild.a(perchild.o): In function
> `child_main':
> /logs/cfr/apache/httpd-2.0/server/mpm/perchild/perchild.c(.text+0x10b5):
> undefined reference to `ap_sigwait'

ap(r)_sigwait() was never implemented... Jeff worked around this in APR by using
sigwait() directly like so:

-        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 */
+        }
+

Perhaps this should be split out into an apr_sigwait() so that Apache can use it
as well.

--Cliff


Mime
View raw message