summaryrefslogtreecommitdiff
path: root/src/execute.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-18 19:30:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-18 19:30:26 +0200
commit41ce3a4dcf5a03588b7c350445e73975c6b12ff7 (patch)
tree8392bded2d40b293ed88d11a633e0325f8dcad14 /src/execute.cc
parentba04d2889a4e017c6043bac9951f722e60b63bc5 (diff)
Add an actual unit-test for the execute function.
Diffstat (limited to 'src/execute.cc')
-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 ::