Delegate Control-Z handling (SIGTSTP)

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

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

評価

難易度
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

haskell/process のほかの issue

haskell/process の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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