Introduction
Introduction Statistics Contact Development Disclaimer Help
Break on first signal found - sinit - suckless init
git clone git://git.suckless.org/sinit
Log
Files
Refs
README
LICENSE
---
commit b1b19ccf2786b06cbbe7a7986a08324f685ca036
parent d1bb8b1a30f059724da20185d17a9565088c322a
Author: sin <[email protected]>
Date: Mon, 21 Apr 2014 10:27:49 +0100
Break on first signal found
Diffstat:
M sinit.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/sinit.c b/sinit.c
@@ -41,9 +41,12 @@ main(void)
spawn(rcinitcmd);
while (1) {
sigwait(&set, &sig);
- for (i = 0; i < LEN(sigmap); i++)
- if (sigmap[i].sig == sig)
+ for (i = 0; i < LEN(sigmap); i++) {
+ if (sigmap[i].sig == sig) {
sigmap[i].handler();
+ break;
+ }
+ }
}
/* not reachable */
return EXIT_SUCCESS;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.