php-childprocess icon indicating copy to clipboard operation
php-childprocess copied to clipboard

In ChildProcess::spawn, $child->on('fork',xxx(){}) is called after $this->parallel

Open lubobill1990 opened this issue 9 years ago • 0 comments

$child->on('fork', function () use (&$files, $child, $types, $self) https://github.com/hfcorriez/php-childprocess/blob/master/lib/Pagon/ChildProcess.php#L243 is called after $child = $this->parallel(function ($process) use ($cmd, $files) { https://github.com/hfcorriez/php-childprocess/blob/master/lib/Pagon/ChildProcess.php#L218

but, $child->emit('fork'); is called in parallel, will the fork listener be called?

lubobill1990 avatar Jan 22 '17 07:01 lubobill1990