From: Harlan Stenn Date: Sun, 23 Feb 2014 23:25:43 +0000 (-0500) Subject: [Bug 2541] ntpd terminates itself with SIGHUP unexpectedly X-Git-Tag: NTP_4_2_7P424~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a6d2a1d7d7a1f17e27edaa47bfe97dedbfc2caf;p=thirdparty%2Fntp.git [Bug 2541] ntpd terminates itself with SIGHUP unexpectedly bk: 530a8377Sqy4tKLEUU0rz8ZHwPDp8g --- diff --git a/ChangeLog b/ChangeLog index ac15f5105..86c6a1c56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2541] ntpd terminates itself with SIGHUP unexpectedly. (4.2.7p423) 2014/02/23 Released by Harlan Stenn * [Bug 2565] Handle EINTR on getifaddrs(). (4.2.7p422) 2014/02/17 Released by Harlan Stenn diff --git a/libntp/work_fork.c b/libntp/work_fork.c index 27b8a0965..10329e70b 100644 --- a/libntp/work_fork.c +++ b/libntp/work_fork.c @@ -98,8 +98,10 @@ interrupt_worker_sleep(void) for (idx = 0; idx < blocking_children_alloc; idx++) { c = blocking_children[idx]; - if (NULL == c) + + if (NULL == c || c->reusable == TRUE) continue; + rc = kill(c->pid, SIGHUP); if (rc < 0) msyslog(LOG_ERR,