summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/execute.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execute.cc b/src/execute.cc
index bc4cd5f..414ce70 100644
--- a/src/execute.cc
+++ b/src/execute.cc
@@ -26,7 +26,7 @@ int parent_waitpid(pid_t pid)
return 1;
}
- return status;
+ return WEXITSTATUS(status);
}
} // namespace ::