MagicStack / MagicStack/uvloop

uvloop simply disable SIGCHLD?

オープン
#409 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。