diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-19 12:21:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-19 12:21:28 +0000 |
commit | be1bf88262a88feb9b79c5cec928107cb4ec5ed8 (patch) | |
tree | f2d3cb22df43299a3b080e36f29f037c2fe5fb37 /usr.sbin/inetd/inetd.c | |
parent | 35f01a75278c1867e62d90e7448de7663cb2ffec (diff) |
ignore SIGPIPE; not nearly as much of a problem as linux though
Diffstat (limited to 'usr.sbin/inetd/inetd.c')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 33a5bfedf5c..f5a04d76afc 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.39 1997/08/31 18:04:37 deraadt Exp $ */ +/* $OpenBSD: inetd.c,v 1.40 1997/09/19 12:21:27 deraadt Exp $ */ /* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */ /* * Copyright (c) 1983,1991 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/ -static char rcsid[] = "$OpenBSD: inetd.c,v 1.39 1997/08/31 18:04:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: inetd.c,v 1.40 1997/09/19 12:21:27 deraadt Exp $"; #endif /* not lint */ /* @@ -378,6 +378,8 @@ main(argc, argv, envp) sigvec(SIGTERM, &sv, NULL); sv.sv_handler = goaway; sigvec(SIGINT, &sv, NULL); + sv.sv_handler = SIG_IGN; + sigvec(SIGPIPE, &sv, NULL); { /* space for daemons to overwrite environment for ps */ |