It doesn't really matter what we return - just signal failure - sinit - suckless init
(HTM) git clone git://git.suckless.org/sinit
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 31dbd779dcbd5b7c2cd96a008f1f93c035e0a4f7
(DIR) parent 189d686ef4415fd611de37fdfec5c14550ec860c
(HTM) Author: sin <sin@2f30.org>
Date: Mon, 10 Feb 2014 20:19:22 +0000
It doesn't really matter what we return - just signal failure
Diffstat:
M sinit.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
(DIR) diff --git 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);
}
}