Apply bandaid to bring svr4_sys_waitsys() in line with exit1(). This
routine really need to be gutted and merged with exit1(). Reviewed by: jhb
This commit is contained in:
parent
f5bba9011e
commit
9f85548494
@ -1377,12 +1377,15 @@ svr4_sys_waitsys(td, uap)
|
||||
* to free anything that cpu_exit couldn't
|
||||
* release while still running in process context.
|
||||
*/
|
||||
cpu_wait(q);
|
||||
vm_waitproc(q);
|
||||
#if defined(__NetBSD__)
|
||||
pool_put(&proc_pool, q);
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
mtx_destroy(&q->p_mtx);
|
||||
#ifdef MAC
|
||||
mac_destroy_proc(q);
|
||||
#endif
|
||||
uma_zfree(proc_zone, q);
|
||||
#endif
|
||||
nprocs--;
|
||||
|
Loading…
Reference in New Issue
Block a user