OSDN Git Service

(split) LDP: Update draft and release pages (based on the previous commit)
[linuxjm/LDP_man-pages.git] / release / man2 / setsid.2
index 8a012b7..4b30141 100644 (file)
@@ -43,12 +43,10 @@ setsid \- セッション (session) を作成し、プロセスグループ ID 
 .br
 .ad b
 .SH 説明
-\fBsetsid\fP()  creates a new session if the calling process is not a process
-group leader.  The calling process is the leader of the new session, the
-process group leader of the new process group, and has no controlling
-terminal.  The process group ID and session ID of the calling process are
-set to the PID of the calling process.  The calling process will be the only
-process in this new process group and in this new session.
+\fBsetsid\fP()  は呼び出したプロセスがプロセスグループ・リーダー (process group leader)
+でなければ、新しいセッションを作成する。 呼び出したプロセスは新しいセッションのリーダー、新しいプロセスグループの
+プロセスグループ・リーダーとなり、端末の制御を持たない。 呼び出したプロセスのプロセスグループ ID とセッション ID には、 呼び出したプロセスの
+PID が設定される。呼び出したプロセスはこの 新しいプロセスグループ、この新しいセッションの唯一のプロセスとなる。
 .SH 返り値
 成功すると、呼び出したプロセスの (新しい) セッション ID が返される。 エラーの場合は、 \fI(pid_t)\ \-1\fP が返され、
 \fIerror\fP にエラーを示す値が設定される。