Skip to content

Commit 9dc5423

Browse files
committed
more on setsid()
1 parent 8233595 commit 9dc5423

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proc.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@
540540
\item The process which is not yet process group leader can both become session
541541
leader and process group leader using \texttt{setsid}. If the process already is
542542
process group leader, \texttt{setsid} will fail. To overcome this it is necessary
543-
to call \texttt{fork} and call \texttt{setsid} in the child process.
543+
to call \texttt{fork} and call \texttt{setsid} in the child process
544+
(and the parent will call \texttt{\_exit()}).
544545
Such process does not have controlling terminal however it can acquire it by
545546
opening a terminal which is not yet controlling terminal of a session when
546547
\texttt{open} flags argument does not contain the \texttt{O\_NOCTTY} flag,

0 commit comments

Comments
 (0)