diff options
-rw-r--r-- | usr.sbin/ripd/rde.c | 3 | ||||
-rw-r--r-- | usr.sbin/ripd/ripd.c | 3 |
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]); |