From e119b22c591c60836e5ccf270f9feeaea8ee0e80 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 18 Sep 1999 06:00:42 +0000 Subject: 1999-09-18 Marcus Brinkmann * runttys.c (run): Only call error if setsid returns -1. * console-run.c (open_console): Likewise. --- daemons/console-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemons/console-run.c') diff --git a/daemons/console-run.c b/daemons/console-run.c index 0cb764d0..ccfd3874 100644 --- a/daemons/console-run.c +++ b/daemons/console-run.c @@ -203,7 +203,7 @@ open_console (char **namep) dup2 (0, 1); dup2 (0, 2); - if (setsid ()) + if (setsid () == -1) error (0, errno, "setsid"); /* Set the console to our pgrp. */ -- cgit v1.2.3