uvloop
uvloop copied to clipboard
uvloop simply disable SIGCHLD?
- uvloop version: 0.14.0
- Python version: 3.6.8
- Platform: linux
-
Can you reproduce the bug with
PYTHONASYNCIODEBUGin env?: - Does uvloop behave differently from vanilla asyncio? How?: uvloop cannot add SIGCHLD handler
I need to monitor child process exit.
loop.add_signal_handler(signal.SIGCHLD, handle_child_exit)
However, uvloop simply disable the signal with the following error. RuntimeError: cannot add a signal handler for SIGCHLD: it is used by the event loop to track subprocesses
Is there any solution to support SIGCHLD?
Not right now, but doable in principle. We just need to allow users to provide a handler for SIGCHLD while making sure that libuv receives it too.