Merge pull request #232 from kiwix/fix_fork_wait_child

Fix waitpid option.
This commit is contained in:
Matthieu Gautier 2019-06-24 11:47:56 +02:00 committed by GitHub
commit 15f7eaa400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;