summaryrefslogtreecommitdiff
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-19 12:21:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-19 12:21:28 +0000
commitbe1bf88262a88feb9b79c5cec928107cb4ec5ed8 (patch)
treef2d3cb22df43299a3b080e36f29f037c2fe5fb37 /usr.sbin/inetd
parent35f01a75278c1867e62d90e7448de7663cb2ffec (diff)
ignore SIGPIPE; not nearly as much of a problem as linux though
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c6
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 */