summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1998-12-15 23:12:33 +0000
committerdillon <dillon@FreeBSD.org>1998-12-15 23:12:33 +0000
commitfac338b16a41db68ed95ba54eb6f6704e0655fdb (patch)
tree8c5e287cdee4ddfb1f67059962a0b3fba989b979
parentc7fe1938fdaed1640b8cf01e08a4c17c7225fd7a (diff)
downloadFreeBSD-src-fac338b16a41db68ed95ba54eb6f6704e0655fdb.zip
FreeBSD-src-fac338b16a41db68ed95ba54eb6f6704e0655fdb.tar.gz
Remove signal mask prior to calling exec
-rw-r--r--usr.sbin/inetd/inetd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 026c41f..154b15c 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94";
#endif
static const char rcsid[] =
- "$Id: inetd.c,v 1.41 1998/11/04 19:39:46 phk Exp $";
+ "$Id: inetd.c,v 1.42 1998/12/11 17:06:16 dillon Exp $";
#endif /* not lint */
/*
@@ -658,6 +658,7 @@ main(argc, argv, envp)
#endif
sigaction(SIGPIPE, &sapipe,
(struct sigaction *)0);
+ sigsetmask(0L);
execv(sep->se_server, sep->se_argv);
if (sep->se_socktype != SOCK_STREAM)
recv(0, buf, sizeof (buf), 0);
OpenPOWER on IntegriCloud