swoole-src
swoole-src copied to clipboard
What is the best way to kill a child process by timeout?
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.
Maybe you can check out https://github.com/kcloze/swoole-jobs/blob/master/src/Process.php for some insight.