From 9421d244243c0a5c6d3941905abfb0b516781465 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 20 Jun 2006 23:12:55 +0200 Subject: [PATCH] fix return value of para_reap_child() In case of errors, this function returned 0 instead of -E_WAITPID. Not a serious bug though. --- signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5