From: Sami Kerola Date: Sat, 13 Apr 2013 19:54:37 +0000 (+0100) Subject: setsid: exit when control terminal cannot be set X-Git-Tag: v2.24-rc1~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af6d26630704afe128e1376dcf35505e29f9b65f;p=thirdparty%2Futil-linux.git setsid: exit when control terminal cannot be set Signed-off-by: Sami Kerola --- diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c index b3e6ebfaff..756a520d8d 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]);