Delegate Control-Z handling (SIGTSTP)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- haskell
調査の方向性
既存の delegate_ctlc ドキュメントを読み、Unix シグナルに対する動作を、提案されている delegate_ctlz オプションと比較してください。親プロセスが WUNTRACED を使って終了または一時停止を待機する方法を調査してください。完了条件は、子プロセスが SIGTSTP を処理でき、子プロセスが一時停止した場合にのみ親プロセス自身も一時停止することです。
索引モデルが issue の本文から書いたものです。
説明
The Control-C handling on Unix documentation describes a delegate_ctlc option that allows the child process to control what happens when Control-C is pressed. I'm wondering if a similar option should be provided to allow the child process to control what happens when Control-Z is pressed.
Without such an option, the child process can install a SIGTSTP handler to customize Control-Z behavior, but the parent process suspends unconditionally, immediately returning control to the shell. This would be undesirable for applications that need to react differently to Control-Z (e.g. by suspending an internal computation instead of suspending the whole program).
A delegate_ctlz option would cause the parent process to ignore SIGTSTP while waiting for the child process to either terminate or suspend (using the WUNTRACED option). If the child suspends, then the parent should suspend itself in turn.
FWIW, the “Proper handling of SIGINT/SIGQUIT” article doesn’t mention anything about SIGTSTP.
- 主要言語
- Haskell
- スター
- 91
- フォーク
- 93
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
haskell/process のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
HAVE_PIPE2 at compile time but not at runtime causes segfault on macOS対応中かも @alt-romes が 3 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
posix_spawn falls back to fork() when create_group = True due to HAVE_DECL_ macro mismatch対応中かも @lei-jia-xing が 11 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
haskell/process の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
haskell/bytestring#730 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
seal-harness/seal-harness#399 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
fmidue/codeworld-tasks#124 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
reflex-frp/reflex#563 ·