| 総合手引 | セクション 2 | English | Deutsch | オプション |
#include <unistd.h>
プロセスグループはシグナルの配信用に使用され、 また端末によって入力の要求を調整するのにも使用されます。 端末と同じプロセスグループを持つ (1 つ以上の) プロセスは フォアグラウンドであり読み取りできます。 一方で、その他のプロセスが読み取ろうした場合は、 シグナルによってブロックさせられます。
このように、このシステムコールは csh(1) のようにジョブ制御のためにプロセスグループの作成を 行うプログラムによって使用されます。 tcgetpgrp() 呼び出しと tcsetpgrp() 呼び出しは制御端末のプロセスグループを取得 / 設定するのに使用されます。
| [ESRCH] | |
| pid で指定したプロセスに対応するプロセスが見つかりません。 | |
IEEE Std 1003.1-90 ("POSIX.1") 基本概念から:
BSD 4.3 は、指定のプロセスについてプロセスグループ ID を返す getpgrp() 関数を備えています。 この関数はジョブ制御をサポートするのに使用されますが、 既知のジョブ制御をする全てのシェルは、必ずこの関数に 呼び出しプロセスを指定しています。 そのためより簡単な AT&T V getpgrp() で十分であり、 BSD 4.3 getpgrp() の追加された複雑さは POSIX.1 から省略されています。 古い機能は getpgid() システムコールで利用できます。
| GETPGRP (2) | June 4, 1993 |
| 総合手引 | セクション 2 | English | Deutsch | オプション |
このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.
| “ | "I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act." | ” |
| — Ken Pier, Xerox PARC | ||