summaryrefslogtreecommitdiffstats
path: root/sys-utils/setsid.c
diff options
context:
space:
mode:
authorSami Kerola2013-04-13 21:54:37 +0200
committerKarel Zak2013-04-26 13:26:01 +0200
commitaf6d26630704afe128e1376dcf35505e29f9b65f (patch)
tree46ee7e134033d3300617e1a68745886a70b7445d /sys-utils/setsid.c
parenthexdump: add long options to the command (diff)
downloadkernel-qcow2-util-linux-af6d26630704afe128e1376dcf35505e29f9b65f.tar.gz
kernel-qcow2-util-linux-af6d26630704afe128e1376dcf35505e29f9b65f.tar.xz
kernel-qcow2-util-linux-af6d26630704afe128e1376dcf35505e29f9b65f.zip
setsid: exit when control terminal cannot be set
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/setsid.c')
-rw-r--r--sys-utils/setsid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c
index b3e6ebfaf..756a520d8 100644
--- a/sys-utils/setsid.c
+++ b/sys-utils/setsid.c
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
if (ctty) {
if (ioctl(STDIN_FILENO, TIOCSCTTY, 1))
- warn(_("failed to set the controlling terminal"));
+ err(EXIT_FAILURE, _("failed to set the controlling terminal"));
}
execvp(argv[optind], argv + optind);
err(EXIT_FAILURE, _("failed to execute %s"), argv[optind]);