diff options
author | sin <sin@2f30.org> | 2014-03-27 10:20:08 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-03-27 10:20:08 +0000 |
commit | 8a9ac0ea3c6ecddfef6e914122b3bb20cb37523c (patch) | |
tree | 436550d9cdb6e3a7341417a1cc14cf6e4f36edf9 | |
parent | d8ba71dec434728e80bd04a7d5d820bd1e82c58c (diff) |
Just block all signals
-rw-r--r-- | sinit.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |