Skip to content

should check pcntl_wifexited first before pcntl_wexitstatus #375

@Jinglever

Description

@Jinglever

In lib/Worker.php line:215 in Function work():
I think it should check pcntl_wifexited first before pcntl_wexitstatus.
Because pcntl_wexitstatus is meaningless if pcntl_wifexited return false.
For example, kill the child process would result in this case.

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