diff options
author | sin <sin@2f30.org> | 2014-03-08 17:16:44 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-03-08 17:16:44 +0000 |
commit | 41841eabd5116c1e045c2023900c7ce7850a2480 (patch) | |
tree | f32d14f3b378801103611af0a6a04ec70930a58b /sinit.c | |
parent | 27326b71197a4f73e422f388d5aa3d1b3ea24bac (diff) |
Remove util/
Diffstat (limited to 'sinit.c')
-rw-r--r-- | sinit.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6,7 +6,8 @@ #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> -#include "util.h" + +#define LEN(x) (sizeof (x) / sizeof *(x)) static void sigpoweroff(void); static void sigreap(void); @@ -81,13 +82,13 @@ spawn(char *const argv[]) pid = fork(); if (pid < 0) { - weprintf("sinit: fork:"); + perror("fork"); } else if (pid == 0) { sigprocmask(SIG_UNBLOCK, &set, NULL); setsid(); setpgid(0, 0); execvp(argv[0], argv); - weprintf("sinit: execvp %s:", argv[0]); + perror("execvp"); _exit(EXIT_FAILURE); } } |