MagicStack / MagicStack/uvloop
uvloop simply disable SIGCHLD?
Nobody has claimed this yet.
- Dominant language
- Cython
- Stars
- 11.9k
- Forks
- 616
- PR merge metrics
- No merged PRs in 30d
Description
* **uvloop version**: 0.14.0
* **Python version**: 3.6.8
* **Platform**: linux
* **Can you reproduce the bug with `PYTHONASYNCIODEBUG` in 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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported loop.add_signal_handler(signal.SIGCHLD, handle_child_exit) case and reproduce the RuntimeError on Linux with uvloop 0.14.0. Compare the behavior with vanilla asyncio, then determine whether SIGCHLD can be supported without breaking the event loop's subprocess tracking. Done means child-process exits can be monitored through a user handler without that conflict.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100