]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't try to write to parent logging fd when closed
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 28 Nov 2013 16:39:50 +0000 (17:39 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 28 Nov 2013 17:11:37 +0000 (18:11 +0100)
logging.c

index 053b1e95bf77c6e4d8c0a34ad7007d6ad2743beb..4b0f173a541214e62b3da2b9a99c5f721611d76e 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -222,6 +222,7 @@ LOG_CloseParentFd()
 {
   if (parent_fd > 0)
     close(parent_fd);
+  parent_fd = 0;
 }
 
 /* ================================================== */