summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-01-04 18:38:52 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-01-04 18:38:52 +0000
commite39f9ce726eac97ab67f820f7c3ab3a7dd5376bf (patch)
tree87635d354cba5b3a4c69b6e35c3867b81fceac14 /usr.sbin/bgpd
parent6fee7f6e54df9a9f80f61bf6563417e63e2881d0 (diff)
ignore SIGPIPE, like the other 2 processes already do. we detect broken
pipes without the signal just fine. ok claudio
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/bgpd.c3
1 files changed, 2 insertions, 1 deletions
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 <henning@openbsd.org>
@@ -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]);