sinit

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

commit 7a2bb2cc6b306ca39e787175027814b23a4ac99a
parent 8a9ac0ea3c6ecddfef6e914122b3bb20cb37523c
Author: sin <sin@2f30.org>
Date:   Thu, 27 Mar 2014 10:22:28 +0000

Fix vertical indentation

Diffstat:
Msinit.c | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

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