summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rebound/rebound.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c
index f84087a3a22..e1d37a111b0 100644
--- a/usr.sbin/rebound/rebound.c
+++ b/usr.sbin/rebound/rebound.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.49 2015/12/04 04:50:43 gsoares Exp $ */
+/* $OpenBSD: rebound.c,v 1.50 2015/12/04 09:13:05 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -652,6 +652,8 @@ main(int argc, char **argv)
if (argc)
usage();
+ signal(SIGPIPE, SIG_IGN);
+
if (getrlimit(RLIMIT_NOFILE, &rlim) == -1)
err(1, "getrlimit");
rlim.rlim_cur = rlim.rlim_max;