summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-01-20 17:13:37 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-01-20 17:13:37 +0000
commitc73cd37b0087c92a9e0b2d0a2c0bbe10f75ff916 (patch)
treeee1c138c601e5a6b9bac82b6a533a2e2f3915741 /usr.sbin
parentdfad91baaac37ee37eb8121a7b8da362aeae765b (diff)
Ignore SIGPIPE in the parent and RDE as well.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfd/ospfd.c3
-rw-r--r--usr.sbin/ospfd/rde.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 46fb7930622..87b0cd44648 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.38 2006/12/21 17:22:29 claudio Exp $ */
+/* $OpenBSD: ospfd.c,v 1.39 2007/01/20 17:13:36 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -227,6 +227,7 @@ main(int argc, char *argv[])
signal_add(&ev_sigterm, NULL);
signal_add(&ev_sigchld, NULL);
signal_add(&ev_sighup, NULL);
+ signal(SIGPIPE, SIG_IGN);
/* setup pipes to children */
close(pipe_parent2ospfe[1]);
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c
index 7acef538711..67f4648826b 100644
--- a/usr.sbin/ospfd/rde.c
+++ b/usr.sbin/ospfd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.52 2007/01/11 21:43:13 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.53 2007/01/20 17:13:36 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -136,6 +136,7 @@ rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2],
signal_set(&ev_sigterm, SIGTERM, rde_sig_handler, NULL);
signal_add(&ev_sigint, NULL);
signal_add(&ev_sigterm, NULL);
+ signal(SIGPIPE, SIG_IGN);
/* setup pipes */
close(pipe_ospfe2rde[0]);