From: Andre Date: Tue, 20 Jun 2006 21:12:55 +0000 (+0200) Subject: fix return value of para_reap_child() X-Git-Tag: v0.2.14~60^2~7 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=9421d244243c0a5c6d3941905abfb0b516781465;p=paraslash.git fix return value of para_reap_child() In case of errors, this function returned 0 instead of -E_WAITPID. Not a serious bug though. --- diff --git a/signal.c b/signal.c index 2d40d49b..f9b95f90 100644 --- a/signal.c +++ b/signal.c @@ -89,7 +89,7 @@ pid_t para_reap_child(void) if (pid <= 0) { if (pid < 0) pid = -E_WAITPID; - return 0; + return pid; } if (WIFEXITED(status)) PARA_DEBUG_LOG("child %i exited. Exit status: %i\n", pid,