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

This commit is contained in:
roy 2013-06-28 07:59:32 +00:00
parent 6c7aa7e063
commit aaccc84c03
1 changed files with 7 additions and 1 deletions

View File

@ -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__);