---Charles Randall [mailto:[EMAIL PROTECTED]] 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