[issue33650] Prohibit adding a signal handler for SIGCHLD

Yury Selivanov report at bugs.python.org
Fri Jun 1 15:00:39 EDT 2018


Yury Selivanov <yselivanov at gmail.com> added the comment:

To clarify this ticket: I'm talking about prohibiting `loop.add_signal_handler(SIGCHLD)` as it would break child processes watchers that asyncio installs. In other words, setting a custom SIGCHLD breaks asyncio internals.

We can allow user-set SIGCHLD signals if we add some code to make sure that 'add_signal_handler(SIGCHLD)' delivers the signal to *both* asyncio internals and user code.  But I'm not sure if there's a valid use case for listening for SIGCHLD for user code at all.

For now, I disabled SIGCHLD in uvloop, let's see if people complain.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33650>
_______________________________________


More information about the Python-bugs-list mailing list