From 0dde19974bcbb07ce977992ab04b7dfa752d99b3 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 22 Jul 2013 12:56:47 +0100 Subject: setsid: add an option to wait child return value This change proposed in util-linux maillist by Damien Wyart in behalf of Daniel Kahn Gillmor. Sami Kerola changed the patch to use option rather than makign the default behavior of the command to change. Reported-by: Damien Wyart Reference: http://markmail.org/message/2z6qh5auk7wjie3l Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495881 CC: Daniel Kahn Gillmor Signed-off-by: Sami Kerola --- sys-utils/setsid.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys-utils/setsid.1') diff --git a/sys-utils/setsid.1 b/sys-utils/setsid.1 index eff794858..da8d648e7 100644 --- a/sys-utils/setsid.1 +++ b/sys-utils/setsid.1 @@ -15,6 +15,11 @@ runs a program in a new session. .TP \fB\-c\fP, \fB\-\-ctty\fP Set the controlling terminal to the current one. +.TP +\fB\-w\fP, \fB\-\-wait\fP +Wait the execution of the program to end, and return the exit value of +the child as return value of the +.BR setsid . .SH "SEE ALSO" .BR setsid (2) .SH AUTHOR -- cgit v1.2.3-55-g7522