aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sinit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sinit.c b/sinit.c
index 14ee7ca..0bb6503 100644
--- 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)