aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1998-12-15 23:12:33 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1998-12-15 23:12:33 +0000
commit73df45e2284af72f657a6afc8fc570ab61589ca4 (patch)
tree4a758729cb2303283c7f2e3aab522e854cd23b36 /usr.sbin
parent8b09cf1cc79a8e113c109388a7af4ee9f7d5340e (diff)
downloadsrc-73df45e2284af72f657a6afc8fc570ab61589ca4.tar.gz
src-73df45e2284af72f657a6afc8fc570ab61589ca4.zip
Remove signal mask prior to calling exec
Notes
Notes: svn path=/head/; revision=41833
Diffstat (limited to 'usr.sbin')
-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 026c41f94d73..154b15c8e3cf 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);