pass P_SUGID to child. from freebsd.
This commit is contained in:
parent
1a913dd191
commit
6fd38fc5f9
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: kern_fork.c,v 1.30 1996/10/09 00:04:39 mycroft Exp $ */
|
/* $NetBSD: kern_fork.c,v 1.31 1997/02/18 01:30:37 mrg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||||
|
@ -191,7 +191,7 @@ again:
|
||||||
* Increase reference counts on shared objects.
|
* Increase reference counts on shared objects.
|
||||||
* The p_stats and p_sigacts substructs are set in vm_fork.
|
* The p_stats and p_sigacts substructs are set in vm_fork.
|
||||||
*/
|
*/
|
||||||
p2->p_flag = P_INMEM;
|
p2->p_flag = P_INMEM | (p1->p_flag & P_SUGID);
|
||||||
p2->p_emul = p1->p_emul;
|
p2->p_emul = p1->p_emul;
|
||||||
if (p1->p_flag & P_PROFIL)
|
if (p1->p_flag & P_PROFIL)
|
||||||
startprofclock(p2);
|
startprofclock(p2);
|
||||||
|
|
Loading…
Reference in New Issue