$NetBSD: patch-aa,v 1.1 2005/11/08 04:01:24 tv Exp $ --- 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))