mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd::exec: Synchronize join to fix waitpid()=ECHILD.
This commit is contained in:
parent
55e7b83ca7
commit
e918bf06bb
1 changed files with 6 additions and 1 deletions
|
@ -149,7 +149,12 @@ try
|
|||
sig,
|
||||
};
|
||||
|
||||
child->wait();
|
||||
//child->wait();
|
||||
dock.wait([this]
|
||||
{
|
||||
return this->pid <= 0;
|
||||
});
|
||||
|
||||
assert(!child->running());
|
||||
return code;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue