summaryrefslogtreecommitdiff
path: root/daemons/console-run.c
diff options
context:
space:
mode:
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. */