sinit

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

commit a95e5a956322b7310f72df0016889288f2909ce6
parent 8194f460daaa9343ce9863838b14132d0ad8037c
Author: sin <sin@2f30.org>
Date:   Fri,  7 Feb 2014 13:23:34 +0000

Don't leak the fifofd if we re-init the fifo

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

diff --git a/sinit.c b/sinit.c @@ -129,6 +129,8 @@ sigfifo(void) { if (!fifopath) return; + if (fifofd != -1) + close(fifofd); unlink(fifopath); umask(0); if (mkfifo(fifopath, 0600) < 0)