summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--run-command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index ea4d0fb4b1..00e68f37ab 100644
--- a/run-command.c
+++ b/run-command.c
@@ -551,8 +551,9 @@ static int wait_or_whine(pid_t pid, const char *argv0, int in_signal)
while ((waiting = waitpid(pid, &status, 0)) < 0 && errno == EINTR)
; /* nothing */
- if (in_signal)
+ if (in_signal) {
return 0;
+ }
if (waiting < 0) {
failed_errno = errno;