From 6fe6f88b10b61e9370980fe90f5b07b2b9482502 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 24 Jun 2019 11:34:03 +0200 Subject: [PATCH] Fix waitpid option. `WEXITED` is an option for the `waitid` function not `waitpid`. We don't need to pass a option to `waitpid`. --- src/subprocess_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subprocess_unix.cpp b/src/subprocess_unix.cpp index 01921fde1..7fcd7b15b 100644 --- a/src/subprocess_unix.cpp +++ b/src/subprocess_unix.cpp @@ -46,7 +46,7 @@ void* UnixImpl::waitForPID(void* _self) #endif UnixImpl* self = static_cast(_self); - waitpid(self->m_pid, NULL, WEXITED); + waitpid(self->m_pid, NULL, 0); pthread_mutex_lock(&self->m_mutex); self->m_running = false;