Removed WUNTRACED

This commit is contained in:
Joop Schilder 2019-01-16 17:22:12 +01:00
parent 8ccab44514
commit c0f4382cc9
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ class Asynchronous
*/
$instance = self::getInstance();
foreach ($instance->children as $index => $pid) {
$response = pcntl_waitpid($pid, $status, WNOHANG | WUNTRACED);
$response = pcntl_waitpid($pid, $status, WNOHANG);
if ($response === $pid)
unset($instance->children[$index]);
}
@ -104,7 +104,7 @@ class Asynchronous
{
$instance = self::getInstance();
while (count($instance->children) > 0) {
pcntl_wait($status, WUNTRACED);
pcntl_wait($status);
array_shift($instance->children);
}
}