summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2010-02-08 00:36:20 +0000
committerguenther <guenther@openbsd.org>2010-02-08 00:36:20 +0000
commit940cc839e169acd9ef7da370923495ced07018a5 (patch)
treea409ed925eec64cd04c7c57c2a6bb06506702d45
parentUse SIGCHLD for the sigchild handler not SIGINT twice. (diff)
downloadwireguard-openbsd-940cc839e169acd9ef7da370923495ced07018a5.tar.xz
wireguard-openbsd-940cc839e169acd9ef7da370923495ced07018a5.zip
...and yet another typo copied from ospfd: the ev_sighup event handler
should handle SIGHUP and not SIGTERM. SIGTERM is already handled by ev_sigterm.
-rw-r--r--usr.sbin/dvmrpd/dvmrpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/dvmrpd.c b/usr.sbin/dvmrpd/dvmrpd.c
index 864a05f22cf..b9d7469935a 100644
--- a/usr.sbin/dvmrpd/dvmrpd.c
+++ b/usr.sbin/dvmrpd/dvmrpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dvmrpd.c,v 1.12 2010/02/08 00:26:51 guenther Exp $ */
+/* $OpenBSD: dvmrpd.c,v 1.13 2010/02/08 00:36:20 guenther Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -242,7 +242,7 @@ main(int argc, char *argv[])
signal_set(&ev_sigint, SIGINT, main_sig_handler, NULL);
signal_set(&ev_sigterm, SIGTERM, main_sig_handler, NULL);
signal_set(&ev_sigchld, SIGCHLD, main_sig_handler, NULL);
- signal_set(&ev_sighup, SIGTERM, main_sig_handler, NULL);
+ signal_set(&ev_sighup, SIGHUP, main_sig_handler, NULL);
signal_add(&ev_sigint, NULL);
signal_add(&ev_sigterm, NULL);
signal_add(&ev_sigchld, NULL);