Don't leak the fifofd if we re-init the fifo - sinit - suckless init
 (HTM) git clone git://git.suckless.org/sinit
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a95e5a956322b7310f72df0016889288f2909ce6
 (DIR) parent 8194f460daaa9343ce9863838b14132d0ad8037c
 (HTM) 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:
         M sinit.c                             |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) 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)