diff options
| author | mycroft <mycroft@NetBSD.org> | 1997-12-04 06:39:02 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1997-12-04 06:39:02 +0000 |
| commit | a88cef697047e905723cc34658d7b4ed6aecdfe0 (patch) | |
| tree | eb0a500ea40fd5a7d5d67a3c4c4772570b5ecb10 | |
| parent | c75f102623aa7c3354dde0f434c5eb1dff5ad7fb (diff) | |
Ignore SIGPIPE, which may be caused by non-forking internal TCP services if
the remote side closes the connection before we answer.
| -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 f17fe27f3a9..c624224ea13 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $NetBSD: inetd.c,v 1.38 1997/10/17 13:53:30 lukem Exp $ */ +/* $NetBSD: inetd.c,v 1.39 1997/12/04 06:39:02 mycroft Exp $ */ /* * Copyright (c) 1983, 1991, 1993, 1994 @@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1991, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94"; #else -__RCSID("$NetBSD: inetd.c,v 1.38 1997/10/17 13:53:30 lukem Exp $"); +__RCSID("$NetBSD: inetd.c,v 1.39 1997/12/04 06:39:02 mycroft Exp $"); #endif #endif /* not lint */ @@ -442,6 +442,8 @@ main(argc, argv, envp) sigvec(SIGTERM, &sv, (struct sigvec *)0); sv.sv_handler = goaway; sigvec(SIGINT, &sv, (struct sigvec *)0); + sv.sv_handler = SIG_IGN; + sigvec(SIGPIPE, &sv, (struct sigvec *)0); { /* space for daemons to overwrite environment for ps */ |
