diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2012-03-23 10:05:00 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2012-03-23 10:05:00 +0000 |
commit | f60831a71f3f91a36f54623acb8a91a113a5d169 (patch) | |
tree | bb55f8f53c56ea41632deca85cf33a94a847fad4 /usr.bin | |
parent | 5cb9bff611e21ec3f19d6cc8ce68f415ab0539ec (diff) |
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@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/usbhidaction/usbhidaction.c | 5 |
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()"); |