sinit

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

commit 5fe27def6552bb8794121d1984ffc16176fb2f08
parent c1a8eb796394bae62f27e54c7929820420538e44
Author: sin <sin@2f30.org>
Date:   Fri,  7 Feb 2014 22:19:40 +0000

No need for sigfd to be defined at file scope

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

diff --git a/sinit.c b/sinit.c @@ -34,8 +34,6 @@ static Sigmap dispatchsig[] = { { SIGINT, sigreboot }, }; -static int sigfd = -1; - #include "config.h" int @@ -43,6 +41,7 @@ main(void) { struct signalfd_siginfo siginfo; sigset_t sigset; + int sigfd; int i; int ret; ssize_t n;