aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sinit.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sinit.c b/sinit.c
index b01497a..34e379b 100644
--- a/sinit.c
+++ b/sinit.c
@@ -35,21 +35,16 @@ main(void)
if (getpid() != 1)
return EXIT_FAILURE;
-
chdir("/");
-
sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, NULL);
-
spawn(rcinitcmd);
-
while (1) {
sigwait(&set, &sig);
for (i = 0; i < LEN(sigmap); i++)
if (sigmap[i].sig == sig)
sigmap[i].handler();
}
-
/* not reachable */
return EXIT_SUCCESS;
}