mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-08 23:06:56 +00:00
15 lines
563 B
Plaintext
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 ;
|