aboutsummaryrefslogtreecommitdiff
path: root/src/sysvinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysvinit.c')
-rw-r--r--src/sysvinit.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sysvinit.c b/src/sysvinit.c
index 87a52d6..6276228 100644
--- a/src/sysvinit.c
+++ b/src/sysvinit.c
@@ -482,7 +482,6 @@ sysvinit_fifo_handler (int fd, void *data)
{
logmsg (LOG_ERR, _("end of file on %s: reopening"), init_fifo);
size = 0;
- close (fd);
deregister_socket (fd);
create_fifo ();
return 0;
@@ -573,10 +572,7 @@ create_fifo ()
{
fstat (fd, &fst);
if (fst.st_dev != st.st_dev || fst.st_ino != st.st_ino)
- {
- deregister_socket (fd);
- close (fd);
- }
+ deregister_socket (fd);
debug (1, ("reopening %s", init_fifo));
}

Return to:

Send suggestions and report system problems to the System administrator.