diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-12-04 09:13:06 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-12-04 09:13:06 +0000 |
commit | 35541b49ba528239cf2176c5b7ab5fff4a66fc1b (patch) | |
tree | 20c31638259c9c8c84a2d0ebae566cb643792743 | |
parent | 11cd7c37a72e76681ea559f537b25694e11e9c54 (diff) |
ignore SIGPIPE. i don't see any way for it to happen, but nevertheless we
definitely don't want to receive it unexpectedly.
-rw-r--r-- | usr.sbin/rebound/rebound.c | 4 |
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; |