1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/www/vrweb/files/patch-ai
1999-10-22 09:35:49 +00:00

15 lines
563 B
Plaintext

--- src/common/Dispatch/dispatcher.C.orig Wed Oct 20 19:42:05 1999
+++ src/common/Dispatch/dispatcher.C Wed Oct 20 19:42:42 1999
@@ -359,7 +359,11 @@
DEBUGNL ("Dispatcher::waitForChild()") ;
pid_t pid ;
int status ;
+#ifdef __FreeBSD__
+ while ((pid = ::waitpid (-1, &status, WNOHANG)) > 0 || (pid < 0 && errno == EINTR)) {
+#else
while ((pid = ::waitpid (-1, &status, WNOHANG)) > 0 || (pid < 0 && ::errno == EINTR)) {
+#endif
DEBUGNL ("Dispatcher::waitForChild(): pid: "<<pid) ;
DChildHandler lookup (pid) ;
int pos ;