From e39f9ce726eac97ab67f820f7c3ab3a7dd5376bf Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 4 Jan 2007 18:38:52 +0000 Subject: ignore SIGPIPE, like the other 2 processes already do. we detect broken pipes without the signal just fine. ok claudio --- usr.sbin/bgpd/bgpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd') diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 10a0de070ff..710e2c6062c 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.141 2007/01/04 12:43:36 claudio Exp $ */ +/* $OpenBSD: bgpd.c,v 1.142 2007/01/04 18:38:51 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -228,6 +228,7 @@ main(int argc, char *argv[]) signal(SIGHUP, sighdlr); signal(SIGALRM, sighdlr); signal(SIGUSR1, sighdlr); + signal(SIGPIPE, SIG_IGN); close(pipe_m2s[1]); close(pipe_m2r[1]); -- cgit v1.2.3