diff options
-rw-r--r-- | sys/kern/kern_fork.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index bf8f6fb..e09e98d 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -642,6 +642,15 @@ again: #endif /* + * If PF_FORK is set, the child process inherits the + * procfs ioctl flags from its parent. + */ + if (p1->p_pfsflags & PF_FORK) { + p2->p_stops = p1->p_stops; + p2->p_pfsflags = p1->p_pfsflags; + } + + /* * set priority of child to be that of parent * XXXKSE hey! copying the estcpu seems dodgy.. should split it.. */ @@ -759,15 +768,6 @@ again: PROC_UNLOCK(p2); /* - * If PF_FORK is set, the child process inherits the - * procfs ioctl flags from its parent. - */ - if (p1->p_pfsflags & PF_FORK) { - p2->p_stops = p1->p_stops; - p2->p_pfsflags = p1->p_pfsflags; - } - - /* * Return child proc pointer to parent. */ *procp = p2; |