summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-01-24 10:14:18 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-01-24 10:14:18 +0000
commitb782caa62d7920658623c10fe26ee064af6fa651 (patch)
tree864346b5e2b358a11eb0c7e9b462883a17edfed7 /usr.sbin
parent8ff3975a2fe1ac51fd7f1af653a8ea11038ff22f (diff)
Ingore SIGPIPE in the parent and rde as well. This is needed to correctly
report crashes. Discussed with norby@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ripd/rde.c3
-rw-r--r--usr.sbin/ripd/ripd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ripd/rde.c b/usr.sbin/ripd/rde.c
index 9f75bba78a6..c49b19faefc 100644
--- a/usr.sbin/ripd/rde.c
+++ b/usr.sbin/ripd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.3 2007/01/08 13:01:10 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.4 2007/01/24 10:14:17 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -115,6 +115,7 @@ rde(struct ripd_conf *xconf, int pipe_parent2rde[2], int pipe_ripe2rde[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_ripe2rde[0]);
diff --git a/usr.sbin/ripd/ripd.c b/usr.sbin/ripd/ripd.c
index cd0fb308570..c9576f0572b 100644
--- a/usr.sbin/ripd/ripd.c
+++ b/usr.sbin/ripd/ripd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripd.c,v 1.2 2007/01/08 13:01:10 claudio Exp $ */
+/* $OpenBSD: ripd.c,v 1.3 2007/01/24 10:14:17 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -225,6 +225,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_parent2ripe[1]);