Module Name: src
Committed By: roy
Date: Fri Jun 28 07:59:32 UTC 2013
Modified Files:
src/usr.sbin/rtadvd: rtadvd.c
Log Message:
If we die and there are no timers, just exit.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/rtadvd/rtadvd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rtadvd/rtadvd.c
diff -u src/usr.sbin/rtadvd/rtadvd.c:1.42 src/usr.sbin/rtadvd/rtadvd.c:1.43
--- src/usr.sbin/rtadvd/rtadvd.c:1.42 Thu Jun 27 15:46:40 2013
+++ src/usr.sbin/rtadvd/rtadvd.c Fri Jun 28 07:59:32 2013
@@ -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 @@ die(void)
/* 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__);