blob: 7e9267d67f419f95bfd0a23ef2dc97d9f1f573ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- 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 ;
|