1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Reset SA_NOCLDWAIT on exec().

PR:		kern/12669
Submitted by:	Doug Ambrisko <ambrisko@whistle.com>
This commit is contained in:
Peter Wemm 1999-07-18 13:40:11 +00:00
parent 9d4ee2f2ef
commit 80e907a1df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48883

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
* $Id: kern_sig.c,v 1.56 1999/05/03 23:57:22 billf Exp $
* $Id: kern_sig.c,v 1.57 1999/07/06 07:13:44 cracauer Exp $
*/
#include "opt_compat.h"
@ -298,6 +298,10 @@ execsigs(p)
ps->ps_sigstk.ss_size = 0;
ps->ps_sigstk.ss_sp = 0;
ps->ps_flags = 0;
/*
* Reset no zombies if child dies flag as Solaris does.
*/
p->p_procsig->ps_flag &= ~P_NOCLDWAIT;
}
/*