summaryrefslogtreecommitdiff
path: root/usr.sbin/eigrpd/eigrpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/eigrpd/eigrpd.c')
-rw-r--r--usr.sbin/eigrpd/eigrpd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.sbin/eigrpd/eigrpd.c b/usr.sbin/eigrpd/eigrpd.c
index e5103cc2631..f75e00ccc0b 100644
--- a/usr.sbin/eigrpd/eigrpd.c
+++ b/usr.sbin/eigrpd/eigrpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eigrpd.c,v 1.11 2016/04/15 13:21:45 renato Exp $ */
+/* $OpenBSD: eigrpd.c,v 1.12 2016/04/15 13:31:03 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -406,9 +406,8 @@ main_dispatch_eigrpe(int fd, short event, void *bula)
if (!shut)
imsg_event_add(iev);
else {
- /* this pipe is dead, so remove the event handler */
- event_del(&iev->ev);
- event_loopexit(NULL);
+ eigrpe_pid = 0;
+ eigrpd_shutdown();
}
}
@@ -470,9 +469,8 @@ main_dispatch_rde(int fd, short event, void *bula)
if (!shut)
imsg_event_add(iev);
else {
- /* this pipe is dead, so remove the event handler */
- event_del(&iev->ev);
- event_loopexit(NULL);
+ rde_pid = 0;
+ eigrpd_shutdown();
}
}