diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2007-01-24 09:57:52 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2007-01-24 09:57:52 +0000 |
commit | 8ff3975a2fe1ac51fd7f1af653a8ea11038ff22f (patch) | |
tree | 68cc0b2073a4288223c5c4a54269a41bc126a97c /usr.sbin | |
parent | 4eb4babe39555851e068e7b760c5d05224417cba (diff) |
Ignore SIGPIPE in the parent and RDE as well.
ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/dvmrpd/dvmrpd.c | 3 | ||||
-rw-r--r-- | usr.sbin/dvmrpd/rde.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/dvmrpd.c b/usr.sbin/dvmrpd/dvmrpd.c index 8f01fd46b32..01671d1aea9 100644 --- a/usr.sbin/dvmrpd/dvmrpd.c +++ b/usr.sbin/dvmrpd/dvmrpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dvmrpd.c,v 1.2 2006/06/01 22:07:30 claudio Exp $ */ +/* $OpenBSD: dvmrpd.c,v 1.3 2007/01/24 09:57:51 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -243,6 +243,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_parent2dvmrpe[1]); diff --git a/usr.sbin/dvmrpd/rde.c b/usr.sbin/dvmrpd/rde.c index 587f994cb68..5b3cc2dd0e1 100644 --- a/usr.sbin/dvmrpd/rde.c +++ b/usr.sbin/dvmrpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.3 2006/12/03 20:14:37 michele Exp $ */ +/* $OpenBSD: rde.c,v 1.4 2007/01/24 09:57:51 norby Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -110,6 +110,7 @@ rde(struct dvmrpd_conf *xconf, int pipe_parent2rde[2], int pipe_dvmrpe2rde[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_dvmrpe2rde[0]); |