[Git][NTPsec/ntpsec][master] Forward-port from Classic: [Bug 2829] initial value issue, pipe_fds in ntpd.c
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Mar 20 23:55:32 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
a0a3089f by Eric S. Raymond at 2016-03-20T19:54:35-04:00
Forward-port from Classic: [Bug 2829] initial value issue, pipe_fds in ntpd.c
- - - - -
1 changed file:
- ntpd/ntpd.c
Changes:
=====================================
ntpd/ntpd.c
=====================================
--- a/ntpd/ntpd.c
+++ b/ntpd/ntpd.c
@@ -635,6 +635,10 @@ ntpdmain(
}
# ifdef HAVE_WORKING_FORK
+ /* make sure the FDs are initialised */
+ pipe_fds[0] = -1;
+ pipe_fds[1] = -1;
+
if (wait_sync <= 0)
wait_sync = 0;
else {
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a0a3089ff046f98eeb734a8a2c13317908c0b526
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160320/b0fe0857/attachment.html>
More information about the vc
mailing list