From 1cec98375ca06f61c922526dac7f8442bee8f2ff Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 16 May 2005 20:51:46 +0000 Subject: Ignore sigpipe so we can properly detach clients to the pipe. Submitted by: Fredrik Lindberg --- sbin/devd/devd.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sbin/devd') diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 9524ea9..228a0c4 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -848,6 +849,7 @@ main(int argc, char **argv) daemon(0, 0); cfg.drop_pidfile(); } + signal(SIGPIPE, SIG_IGN); signal(SIGHUP, gensighand); signal(SIGINT, gensighand); signal(SIGTERM, gensighand); -- cgit v1.1