OSDN Git Service

(split) LDP: Addresses fuzzy strings in 3.53
[linuxjm/LDP_man-pages.git] / release / man2 / setpgid.2
index 2962834..9b697d4 100644 (file)
@@ -160,17 +160,13 @@ POSIX.1 では規定されていない。
 
 各プロセスグループはセッションのメンバーであり、各プロセスは そのプロセスグループが所属しているセッションのメンバーである。
 
-A session can have a controlling terminal.  At any time, one (and only one)
-of the process groups in the session can be the foreground process group for
-the terminal; the remaining process groups are in the background.  If a
-signal is generated from the terminal (e.g., typing the interrupt key to
-generate \fBSIGINT\fP), that signal is sent to the foreground process group.
-(See \fBtermios\fP(3)  for a description of the characters that generate
-signals.)  Only the foreground process group may \fBread\fP(2)  from the
-terminal; if a background process group tries to \fBread\fP(2)  from the
-terminal, then the group is sent a \fBSIGTTIN\fP signal, which suspends it.
-The \fBtcgetpgrp\fP(3)  and \fBtcsetpgrp\fP(3)  functions are used to get/set the
-foreground process group of the controlling terminal.
+セッションは制御端末 (controlling terminal) を持つことができる。 いつでも、セッションに所属するプロセスグループの一つ (だけ)
+が 端末のフォアグランドのプロセスグループになることができ、 残りのプロセスグループはバックグラウンドになる。 端末からシグナルが生成された場合
+(例えば、中断キーを叩いて \fBSIGINT\fP が生成されるなど)、そのシグナルはフォアグラウンドのプロセスグループ に送られる
+(シグナルを生成する文字の説明は \fBtermios\fP(3)  を参照)。 フォアグラウンドのプロセスグループだけが端末からの \fBread\fP(2)
+ができる。 バックグラウンドのプロセスグループが端末からの \fBread\fP(2)  を行おうとした場合、そのプロセスグループにはシグナル
+\fBSIGTTIN\fP が送られ、そのプロセスグループは一時停止 (suspend) する。 関数 \fBtcgetpgrp\fP(3)  と
+\fBtcsetpgrp\fP(3)  を使うと、制御端末のフォアグラウンドのプロセスグループを 取得/設定できる。
 
 \fBsetpgid\fP()  と \fBgetpgrp\fP()  は、 \fBbash\fP(1)  のようなプログラムで、シェルのジョブ制御 (job
 control) の実装のための プロセスグループを作成するのに使われる。