MagicStack / MagicStack/uvloop
uvloop simply disable SIGCHLD?
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Cython
- Star
- 11.9k
- Fork
- 616
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
- 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?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100