summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2023-11-12 15:18:05 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2023-11-12 15:18:05 +0000
commitd2d7ab730bbaf7f9886bf6d87ddb2bdc484b7531 (patch)
tree2e02ace1cdca0bca1ab76a200c339d2428fd5a77
parentb0c5584dd70df29effa9b859e0ee095ca7f92363 (diff)
fix the signal numbers passed to siginterrupt.
from dhill@
-rw-r--r--sbin/pflogd/pflogd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c
index 5b0740c84d5..271e46326ee 100644
--- a/sbin/pflogd/pflogd.c
+++ b/sbin/pflogd/pflogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pflogd.c,v 1.64 2023/11/09 18:36:19 dlg Exp $ */
+/* $OpenBSD: pflogd.c,v 1.65 2023/11/12 15:18:04 dlg Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -690,13 +690,13 @@ main(int argc, char **argv)
signal(SIGTERM, sig_close);
siginterrupt(SIGTERM, 1);
signal(SIGINT, sig_close);
- siginterrupt(SIGTERM, 1);
+ siginterrupt(SIGINT, 1);
signal(SIGQUIT, sig_close);
- siginterrupt(SIGTERM, 1);
+ siginterrupt(SIGQUIT, 1);
signal(SIGALRM, sig_alrm);
- siginterrupt(SIGTERM, 1);
+ siginterrupt(SIGALRM, 1);
signal(SIGHUP, sig_hup);
- siginterrupt(SIGTERM, 1);
+ siginterrupt(SIGHUP, 1);
alarm(delay);
if (priv_init_pcap(snaplen))