-
-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Description
I'm back with another one!
Was attempting to implement the signal handling demo examples/event-loop/signals.php and kept running into an issue where my script would catch the signal, hit exit(0) and hang at 100% cpu usage.
Switching from uv to the native driver seemed to work. But I was looking at a way to still use uv and it looks like swapping the exit call for a Loop::stop() call works well. The downside being that code execution stops at an arbitrary point after the Loop::run() line -- probably okay for the demo, but on a larger scale could be hard to manage.
I'll make a PR for it in a minute here.
php7.4/Linux
Metadata
Metadata
Assignees
Labels
No labels