]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2541] ntpd terminates itself with SIGHUP unexpectedly
authorHarlan Stenn <stenn@ntp.org>
Sun, 23 Feb 2014 23:25:43 +0000 (18:25 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sun, 23 Feb 2014 23:25:43 +0000 (18:25 -0500)
bk: 530a8377Sqy4tKLEUU0rz8ZHwPDp8g

ChangeLog
libntp/work_fork.c

index ac15f5105b0f63968662791270e1e54a776cafda..86c6a1c56cde8b0925b0b42c52f170a94865abe7 100644 (file)
--- 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 <stenn@ntp.org>
 * [Bug 2565] Handle EINTR on getifaddrs().
 (4.2.7p422) 2014/02/17 Released by Harlan Stenn <stenn@ntp.org>
index 27b8a096574712990dd171560836bebd479b8e68..10329e70be8f4fc11e5c3430511e8a08a6481298 100644 (file)
@@ -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,