chrisboulton / php-resque

PHP port of resque (Workers and Queueing)
MIT License
3.43k stars 759 forks source link

should check pcntl_wifexited first before pcntl_wexitstatus #375

Open Jinglever opened 5 years ago

Jinglever commented 5 years ago

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.