]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #1242 from donaldsharp/eigrp_tm
authorRenato Westphal <renato@openbsd.org>
Wed, 27 Sep 2017 12:20:51 +0000 (09:20 -0300)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2017 12:20:51 +0000 (09:20 -0300)
Eigrp tm

eigrpd/eigrp_main.c
lib/libfrr.c
lib/thread.c

index 705e04b34dda793d001c199fe0ed62da06664710..c4ca07178c3a130f45a8a911b088f9a0b2a8c69a 100644 (file)
@@ -100,6 +100,8 @@ static void sigint(void)
 {
        zlog_notice("Terminating on signal");
        eigrp_terminate();
+
+       exit(0);
 }
 
 /* SIGUSR1 handler. */
index 3e2e0082234b395d8e860bf6175822f46cb8b275..d5078f98aa2877f2b114abb5c89720dd381b4439 100644 (file)
@@ -886,6 +886,7 @@ void frr_fini(void)
        zprivs_terminate(di->privs);
        /* signal_init -> nothing needed */
        thread_master_free(master);
+       master = NULL;
        closezlog();
        /* frrmod_init -> nothing needed / hooks */
 
index 621eed0ff02d3d36717b03471511486c1d759ce7..a69bd2f0d57ed753532731e2646b7c1f143771ca 100644 (file)
@@ -571,6 +571,7 @@ void thread_master_free(struct thread_master *m)
        close(m->io_pipe[0]);
        close(m->io_pipe[1]);
        list_delete(m->cancel_req);
+       m->cancel_req = NULL;
 
        hash_clean(m->cpu_record, cpu_record_hash_free);
        hash_free(m->cpu_record);