[PATCH 09/33] setsid: exit when control terminal cannot be set

Sami Kerola
2013-04-13T19:55:31Z

sys-utils/setsid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c
index b3e6ebf..756a520 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]);
--
1.8.2.1