mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
16 lines
464 B
Plaintext
16 lines
464 B
Plaintext
$NetBSD: patch-aa,v 1.2 2015/04/23 09:17:48 abs Exp $
|
|
|
|
Use POSIX 1 waitpid() rather than wait3()
|
|
|
|
--- listen.c.orig 1998-07-30 19:46:51.000000000 -0400
|
|
+++ listen.c
|
|
@@ -65,7 +65,7 @@ listenForIncomingConnections()
|
|
|
|
/* reap any zombies */
|
|
int status, pid;
|
|
- while ((pid= wait3(&status, WNOHANG, (struct rusage *)0))>0);
|
|
+ while ((pid= waitpid(-1, &status, WNOHANG))>0);
|
|
|
|
/* discard any X events */
|
|
while (XCheckIfEvent(d, &ev, AllXEventsPredicate, NULL))
|