sinit

suckless init
git clone git://git.suckless.org/sinit
Log | Files | Refs | README | LICENSE

commit 8a9ac0ea3c6ecddfef6e914122b3bb20cb37523c
parent d8ba71dec434728e80bd04a7d5d820bd1e82c58c
Author: sin <sin@2f30.org>
Date:   Thu, 27 Mar 2014 10:20:08 +0000

Just block all signals

Diffstat:
Msinit.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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);