mirror of https://github.com/kiwix/libkiwix.git
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:
parent
687a15877a
commit
6fe6f88b10
|
@ -46,7 +46,7 @@ void* UnixImpl::waitForPID(void* _self)
|
|||
#endif
|
||||
|
||||
UnixImpl* self = static_cast<UnixImpl*>(_self);
|
||||
waitpid(self->m_pid, NULL, WEXITED);
|
||||
waitpid(self->m_pid, NULL, 0);
|
||||
|
||||
pthread_mutex_lock(&self->m_mutex);
|
||||
self->m_running = false;
|
||||
|
|
Loading…
Reference in New Issue