aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-03-27 10:20:08 +0000
committersin <sin@2f30.org>2014-03-27 10:20:08 +0000
commit8a9ac0ea3c6ecddfef6e914122b3bb20cb37523c (patch)
tree436550d9cdb6e3a7341417a1cc14cf6e4f36edf9
parentd8ba71dec434728e80bd04a7d5d820bd1e82c58c (diff)
Just block all signals
-rw-r--r--sinit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sinit.c b/sinit.c
index 45cf0ff..b01497a 100644
--- a/sinit.c
+++ b/sinit.c
@@ -38,9 +38,7 @@ main(void)
chdir("/");
- sigemptyset(&set);
- for (i = 0; i < LEN(sigmap); i++)
- sigaddset(&set, sigmap[i].sig);
+ sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, NULL);
spawn(rcinitcmd);