From 31de787c8bb8c1620556fa954d6285a8a421619b Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Fri, 5 Sep 2008 00:06:07 +0200 Subject: [PATCH] RECVFROM with FORK hung after the first packet - still on BSD --- xio-socket.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xio-socket.c b/xio-socket.c index cd11c14..d93bb98 100644 --- a/xio-socket.c +++ b/xio-socket.c @@ -566,6 +566,11 @@ void xiosigaction_hasread(int signum, siginfo_t *siginfo, void *ucontext) { Debug("xiosigaction_hasread() ->"); return; } + if (pid == xio_waitingfor) { + xio_hashappened = true; + Debug("xiosigaction_hasread() ->"); + return; + } } while (1); } if (xio_waitingfor == siginfo->si_pid) {