MagicStack / MagicStack/uvloop

uvloop simply disable SIGCHLD?

未關閉
#409 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Cython
星號
11.9k
分支
616
PR 合併指標
30 天內沒有已合併 PR

描述

  • 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?

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從回報的 loop.add_signal_handler(signal.SIGCHLD, handle_child_exit) 案例開始,在 Linux 上使用 uvloop 0.14.0 重現 RuntimeError。將其行為與原生 asyncio 進行比較,然後確定是否可以在不破壞事件迴圈對子程序的追蹤的情況下支援 SIGCHLD。完成標準是:可以透過使用者處理常式監控子程序退出,且不存在此衝突。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
operating-systems
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。