swoole-src icon indicating copy to clipboard operation
swoole-src copied to clipboard

What is the best way to kill a child process by timeout?

Open nskforward opened this issue 6 years ago • 1 comments

I use swoole_process to create a child process. Everything goes fine until this child process stays in hung state by any reason. I checked the swoole_timer_tick function inside child process but it does not work in my case. So, I think master process should check the child work timeout but not found any examples. Could you point me to the right direction.

nskforward avatar Aug 11 '18 15:08 nskforward

Maybe you can check out https://github.com/kcloze/swoole-jobs/blob/master/src/Process.php for some insight.

vrgenl avatar Aug 21 '18 07:08 vrgenl