Introduction
Introduction Statistics Contact Development Disclaimer Help
No need for sigfd to be defined at file scope - sinit - suckless init
git clone git://git.suckless.org/sinit
Log
Files
Refs
README
LICENSE
---
commit 5fe27def6552bb8794121d1984ffc16176fb2f08
parent c1a8eb796394bae62f27e54c7929820420538e44
Author: sin <[email protected]>
Date: Fri, 7 Feb 2014 22:19:40 +0000
No need for sigfd to be defined at file scope
Diffstat:
M 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;
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.