mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #232 from kiwix/fix_fork_wait_child
Fix waitpid option.
This commit is contained in:
commit
15f7eaa400
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue