summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2012-03-23 10:04:59 +0000
committerrobert <robert@openbsd.org>2012-03-23 10:04:59 +0000
commit12e427a90393aafd3395b626d289d43fb996ef83 (patch)
treea82639a85021368006af0a57109bbce6b1e87f90
parentRemove man pages for removed non-portable functions. okay jmc@ (diff)
downloadwireguard-openbsd-12e427a90393aafd3395b626d289d43fb996ef83.tar.xz
wireguard-openbsd-12e427a90393aafd3395b626d289d43fb996ef83.zip
Ignore SIGCHLD because we don't really care what happened to the forked
processes and we don't want to wait for them to finish either. This makes the walking dead go away. ok espie@, mikeb@
-rw-r--r--usr.bin/usbhidaction/usbhidaction.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/usbhidaction/usbhidaction.c b/usr.bin/usbhidaction/usbhidaction.c
index 5e72c1b524c..dbdb4eeb9dd 100644
--- a/usr.bin/usbhidaction/usbhidaction.c
+++ b/usr.bin/usbhidaction/usbhidaction.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbhidaction.c,v 1.15 2011/03/07 14:59:06 jasper Exp $ */
+/* $OpenBSD: usbhidaction.c,v 1.16 2012/03/23 10:04:59 robert Exp $ */
/* $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */
/*
@@ -160,6 +160,9 @@ main(int argc, char **argv)
(void)signal(SIGHUP, sighup);
+ /* we do not care about the children, so ignore them */
+ (void)signal(SIGCHLD, SIG_IGN);
+
if (demon) {
if (daemon(0, 0) < 0)
err(1, "daemon()");