From: Miroslav Lichvar Date: Thu, 28 Nov 2013 16:39:50 +0000 (+0100) Subject: Don't try to write to parent logging fd when closed X-Git-Tag: 1.30-pre1~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cc9c4940c72bcfe7b5ae8ad04b3cbdf5b2e8c6d;p=thirdparty%2Fchrony.git Don't try to write to parent logging fd when closed --- diff --git a/logging.c b/logging.c index 053b1e95..4b0f173a 100644 --- a/logging.c +++ b/logging.c @@ -222,6 +222,7 @@ LOG_CloseParentFd() { if (parent_fd > 0) close(parent_fd); + parent_fd = 0; } /* ================================================== */