2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-19 04:22:15 +00:00

zombie reap fix.

This commit is contained in:
Klemens Morgenstern
2023-08-14 18:00:55 +08:00
parent 502dc48753
commit 3ad4fd3ccf

View File

@@ -445,7 +445,7 @@ child executor<Sequence>::invoke(boost::mpl::false_, boost::mpl::false_)
if (_ec)
{
//if an error occurred we need to reap the child process
::waitpid(this->pid, nullptr, WNOHANG);
::waitpid(this->pid, nullptr, 0);
boost::fusion::for_each(seq, call_on_error(*this, _ec));
return child();
}