Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rtadvd If we die and there are no timers, just exit.



details:   https://anonhg.NetBSD.org/src/rev/e2509e68b5d9
branches:  trunk
changeset: 787679:e2509e68b5d9
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Jun 28 07:59:32 2013 +0000

description:
If we die and there are no timers, just exit.

diffstat:

 usr.sbin/rtadvd/rtadvd.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 20f4ed05ba5d -r e2509e68b5d9 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c  Fri Jun 28 06:17:37 2013 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c  Fri Jun 28 07:59:32 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtadvd.c,v 1.42 2013/06/27 15:46:40 roy Exp $  */
+/*     $NetBSD: rtadvd.c,v 1.43 2013/06/28 07:59:32 roy Exp $  */
 /*     $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -362,6 +362,12 @@
                /* NOT REACHED */
        }
 
+       if (TAILQ_FIRST(&ralist) == NULL) {
+               syslog(LOG_NOTICE, "<%s> gracefully terminated", __func__);
+               exit(0);
+               /* NOT REACHED */
+       }
+
        waiting = 1;
        syslog(LOG_NOTICE, "<%s> final RA transmission started", __func__);
 



Home | Main Index | Thread Index | Old Index