diff options
author | sin <sin@2f30.org> | 2014-02-07 13:23:34 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-02-07 13:23:34 +0000 |
commit | a95e5a956322b7310f72df0016889288f2909ce6 (patch) | |
tree | 23b87d9d520a4f799f902f8ddb354a702122b92e | |
parent | 8194f460daaa9343ce9863838b14132d0ad8037c (diff) |
Don't leak the fifofd if we re-init the fifo
-rw-r--r-- | sinit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -129,6 +129,8 @@ sigfifo(void) { if (!fifopath) return; + if (fifofd != -1) + close(fifofd); unlink(fifopath); umask(0); if (mkfifo(fifopath, 0600) < 0) |