Skip to content

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

@lubobill1990

Description

@lubobill1990

$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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions