blob: 7706a1ee4086010b382bcdba8fc85f61ee166f70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$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))
|