summaryrefslogtreecommitdiff
path: root/daemons/console-run.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-18 06:00:42 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-18 06:00:42 +0000
commite119b22c591c60836e5ccf270f9feeaea8ee0e80 (patch)
tree5109edd33bdbd5fd9890e60f670a6b3a5ea209a9 /daemons/console-run.c
parent457268a31380ed3cf80573962ebe15f88b9e42ff (diff)
1999-09-18 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
* runttys.c (run): Only call error if setsid returns -1. * console-run.c (open_console): Likewise.
Diffstat (limited to 'daemons/console-run.c')
-rw-r--r--daemons/console-run.c2
1 files changed, 1 insertions, 1 deletions
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. */