diff options
-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) |
index : sinit | ||
A tiny static init(1) for Linux | Nick Shipp <nick@shipp.ninja> |
aboutsummaryrefslogtreecommitdiff |
-rw-r--r-- | sinit.c | 2 |
@@ -129,6 +129,8 @@ sigfifo(void) { if (!fifopath) return; + if (fifofd != -1) + close(fifofd); unlink(fifopath); umask(0); if (mkfifo(fifopath, 0600) < 0) |