Fix waitpid option.

`WEXITED` is an option for the `waitid` function not `waitpid`.

We don't need to pass a option to `waitpid`.
This commit is contained in:
Matthieu Gautier 2019-06-24 11:34:03 +02:00
parent 687a15877a
commit 6fe6f88b10
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void* UnixImpl::waitForPID(void* _self)
#endif #endif
UnixImpl* self = static_cast<UnixImpl*>(_self); UnixImpl* self = static_cast<UnixImpl*>(_self);
waitpid(self->m_pid, NULL, WEXITED); waitpid(self->m_pid, NULL, 0);
pthread_mutex_lock(&self->m_mutex); pthread_mutex_lock(&self->m_mutex);
self->m_running = false; self->m_running = false;