Module Name: src
Committed By: kardel
Date: Mon Jan 20 19:03:33 UTC 2014
Modified Files:
src/external/bsd/ntp/dist/libntp: work_fork.c
Log Message:
fix voluntary self-destruct (kill(0, SIGUP)) after successful int_res run and
interface change
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/ntp/dist/libntp/work_fork.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/dist/libntp/work_fork.c
diff -u src/external/bsd/ntp/dist/libntp/work_fork.c:1.1.1.1 src/external/bsd/ntp/dist/libntp/work_fork.c:1.2
--- src/external/bsd/ntp/dist/libntp/work_fork.c:1.1.1.1 Fri Dec 27 23:30:48 2013
+++ src/external/bsd/ntp/dist/libntp/work_fork.c Mon Jan 20 19:03:33 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: work_fork.c,v 1.1.1.1 2013/12/27 23:30:48 christos Exp $ */
+/* $NetBSD: work_fork.c,v 1.2 2014/01/20 19:03:33 kardel Exp $ */
/*
* work_fork.c - fork implementation for blocking worker child.
@@ -100,8 +100,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,