diff options
Diffstat (limited to 'nihil.posix/process.cc')
| -rw-r--r-- | nihil.posix/process.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nihil.posix/process.cc b/nihil.posix/process.cc index 70e84b7..02642bc 100644 --- a/nihil.posix/process.cc +++ b/nihil.posix/process.cc @@ -85,7 +85,7 @@ auto process::pid(this process const &self) noexcept -> ::pid_t auto process::wait(this process &&self) -> std::expected<wait_result, error> { auto status = int{}; - auto ret = waitpid(self.m_pid, &status, WEXITED); + auto ret = waitpid(self.m_pid, &status, 0); if (ret == -1) return std::unexpected(error(std::errc(errno))); |
