pkgsrc/net/tightvncviewer/patches/patch-ab
2004-08-21 05:50:44 +00:00

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))