diff options
author | Sami Kerola | 2013-04-13 21:54:37 +0200 |
---|---|---|
committer | Karel Zak | 2013-04-26 13:26:01 +0200 |
commit | af6d26630704afe128e1376dcf35505e29f9b65f (patch) | |
tree | 46ee7e134033d3300617e1a68745886a70b7445d /sys-utils | |
parent | hexdump: add long options to the command (diff) | |
download | kernel-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')
-rw-r--r-- | sys-utils/setsid.c | 2 |
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]); |