summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEsben Norby <norby@cvs.openbsd.org>2005-08-15 18:58:48 +0000
committerEsben Norby <norby@cvs.openbsd.org>2005-08-15 18:58:48 +0000
commitdd328645b4c3bd6adea5d0d74eb4f6f20ba640fb (patch)
treefc2a76b4078351703963f256e17764815d201cd3 /usr.sbin
parent1a10859ffe564a14c717a1326ced43b120221dba (diff)
Fix possible race condition in signal handler.
Report and fix from Micheal Knudsen. Prep, test and OK claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfd/ospfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index c232037538f..76fb186ca5b 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.22 2005/06/21 19:10:22 claudio Exp $ */
+/* $OpenBSD: ospfd.c,v 1.23 2005/08/15 18:58:47 norby Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -80,8 +80,8 @@ main_sig_handler(int sig, short event, void *arg)
switch (sig) {
case SIGTERM:
case SIGINT:
- ospfd_shutdown();
- /* NOTREACHED */
+ die = 1;
+ /* FALLTHROUGH */
case SIGCHLD:
if (check_child(ospfe_pid, "ospf engine")) {
ospfe_pid = 0;