Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/dist/libntp fix voluntary self-destruct (ki...



details:   https://anonhg.NetBSD.org/src/rev/59d368cdb6ab
branches:  trunk
changeset: 792890:59d368cdb6ab
user:      kardel <kardel%NetBSD.org@localhost>
date:      Mon Jan 20 19:03:33 2014 +0000

description:
fix voluntary self-destruct (kill(0, SIGUP)) after successful int_res run and interface change

diffstat:

 external/bsd/ntp/dist/libntp/work_fork.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 1af40957872e -r 59d368cdb6ab external/bsd/ntp/dist/libntp/work_fork.c
--- a/external/bsd/ntp/dist/libntp/work_fork.c  Mon Jan 20 17:14:38 2014 +0000
+++ b/external/bsd/ntp/dist/libntp/work_fork.c  Mon Jan 20 19:03:33 2014 +0000
@@ -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 @@
 
        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,



Home | Main Index | Thread Index | Old Index