1285f3b89d
wait3(status, options, NULL).
16 lines
498 B
Text
16 lines
498 B
Text
$NetBSD: patch-ab,v 1.1 2004/08/21 05:50:44 minskim Exp $
|
|
|
|
--- vncviewer/listen.c.orig Tue Jan 16 02:07:57 2001
|
|
+++ vncviewer/listen.c
|
|
@@ -124,7 +124,11 @@ listenForIncomingConnections(int *argc,
|
|
|
|
/* reap any zombies */
|
|
int status, pid;
|
|
+#ifdef __INTERIX
|
|
+ while ((pid= waitpid(-1, &status, WNOHANG))>0);
|
|
+#else
|
|
while ((pid= wait3(&status, WNOHANG, (struct rusage *)0))>0);
|
|
+#endif
|
|
|
|
/* discard any X events */
|
|
while (XCheckIfEvent(d, &ev, AllXEventsPredicate, NULL))
|