mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user