aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-02-10 20:19:22 +0000
committersin <sin@2f30.org>2014-02-10 20:19:22 +0000
commit31dbd779dcbd5b7c2cd96a008f1f93c035e0a4f7 (patch)
tree34021b6bd96b171fc45b750fdb3c4d1bbe0943ec
parent189d686ef4415fd611de37fdfec5c14550ec860c (diff)
It doesn't really matter what we return - just signal failure
-rw-r--r--sinit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sinit.c b/sinit.c
index 6f0f2cd..e938f3e 100644
--- a/sinit.c
+++ b/sinit.c
@@ -1,6 +1,5 @@
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -88,6 +87,6 @@ spawn(char *const argv[])
setpgid(0, 0);
execvp(argv[0], argv);
weprintf("sinit: execvp %s:", argv[0]);
- _exit(errno == ENOENT ? 127 : 126);
+ _exit(EXIT_FAILURE);
}
}