diff options
author | claudio <claudio@openbsd.org> | 2007-01-24 10:14:17 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2007-01-24 10:14:17 +0000 |
commit | bfb3864d6c28ad7bc4ec09b09d2a760681f202ca (patch) | |
tree | 280360a27f8e6fe9adda007e0c69fcce972a68d8 /usr.sbin/ripd/ripd.c | |
parent | Ignore SIGPIPE in the parent and RDE as well. (diff) | |
download | wireguard-openbsd-bfb3864d6c28ad7bc4ec09b09d2a760681f202ca.tar.xz wireguard-openbsd-bfb3864d6c28ad7bc4ec09b09d2a760681f202ca.zip |
Ingore SIGPIPE in the parent and rde as well. This is needed to correctly
report crashes. Discussed with norby@
Diffstat (limited to 'usr.sbin/ripd/ripd.c')
-rw-r--r-- | usr.sbin/ripd/ripd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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]); |