diff options
| author | David Greenman <dg@FreeBSD.org> | 1997-02-17 10:58:46 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1997-02-17 10:58:46 +0000 |
| commit | 70e534e78f20664a8ad683c25d66c0713499d07b (patch) | |
| tree | 30cddd1ef6589e028945cb76d5b45b9de5a2db52 /sys | |
| parent | 2731fd39ed0b3227e53d73dd775b574a86cdb39f (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 0de5272340b3..40f12f36c311 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -275,6 +275,10 @@ again: p2->p_limit->p_refcnt++; } + /* + * Preserve some flags in subprocess. + */ + p2->p_flag |= p1->p_flag & P_SUGID; if (p1->p_session->s_ttyvp != NULL && p1->p_flag & P_CONTROLT) p2->p_flag |= P_CONTROLT; if (flags & RFPPWAIT) |
