diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2002-08-22 21:45:58 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2002-08-22 21:45:58 +0000 |
| commit | 49539972e9daccdf4ec5ee14dc7415126efd3ccf (patch) | |
| tree | a5d47668028d913f63c63c82275b6116ae3b9620 /sys/kern/kern_fork.c | |
| parent | 4a6a94d8d803018858d728dad780253f98583be0 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
| -rw-r--r-- | sys/kern/kern_fork.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index e09e98d8df5f..5f9d1bd374d0 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -768,6 +768,15 @@ again: PROC_UNLOCK(p2); /* + * If other threads are waiting, let them continue now + */ + if (p1->p_flag & P_KSES) { + PROC_LOCK(p1); + thread_single_end(); + PROC_UNLOCK(p1); + } + + /* * Return child proc pointer to parent. */ *procp = p2; |
