summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-12-22 11:11:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-12-22 11:11:28 +0000
commit0e922b36d161eb9f565830e475d9957ee52a436c (patch)
tree81901a441b228b037f8e734dd9131561a4493b11
parentf37136c04667a65088522d00d57a167e7dceb5ba (diff)
No need to setup a signal handler for SIGKILL as you can't catch it anyway.
-rw-r--r--usr.sbin/bgpd/bgpd.c4
-rw-r--r--usr.sbin/wsmoused/wsmoused.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 091b24fdf67..d4af64ed7a5 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.14 2003/12/22 11:04:12 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.15 2003/12/22 11:11:25 miod Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -52,7 +52,6 @@ sighdlr(int sig)
{
switch (sig) {
case SIGTERM:
- case SIGKILL:
case SIGINT:
case SIGCHLD:
quit = 1;
@@ -140,7 +139,6 @@ main(int argc, char *argv[])
exit (1);
signal(SIGTERM, sighdlr);
- signal(SIGKILL, sighdlr);
signal(SIGINT, sighdlr);
signal(SIGCHLD, sighdlr);
signal(SIGHUP, sighdlr);
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c
index b716d08314b..ba9b04a7cbd 100644
--- a/usr.sbin/wsmoused/wsmoused.c
+++ b/usr.sbin/wsmoused/wsmoused.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.c,v 1.16 2003/11/08 08:49:51 jmc Exp $ */
+/* $OpenBSD: wsmoused.c,v 1.17 2003/12/22 11:11:27 miod Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -575,7 +575,6 @@ main(int argc, char **argv)
signal(SIGINT , terminate);
signal(SIGQUIT, terminate);
signal(SIGTERM, terminate);
- signal(SIGKILL, terminate);
if ((mouse.mfd = open(mouse.portname,
O_RDONLY | O_NONBLOCK, 0)) == -1)
logerr(1, "unable to open %s", mouse.portname);