From 9f85548494968c2f7d74fe0dcef1a306b0974cb9 Mon Sep 17 00:00:00 2001 From: dillon Date: Mon, 13 Jan 2003 22:44:23 +0000 Subject: [PATCH] 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 --- sys/compat/svr4/svr4_misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index 16f7863a1216..e9512f48ddcc 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -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--;