diff options
author | dillon <dillon@FreeBSD.org> | 2003-01-13 22:44:23 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2003-01-13 22:44:23 +0000 |
commit | e08a8297e2779e8d6e2160c041440e8f3908ece8 (patch) | |
tree | 3acf768b7f4fe0d03744d1450b85224caeb18df9 | |
parent | 7558240f5690462141d1e37d1edf444520a3afc8 (diff) | |
download | FreeBSD-src-e08a8297e2779e8d6e2160c041440e8f3908ece8.zip FreeBSD-src-e08a8297e2779e8d6e2160c041440e8f3908ece8.tar.gz |
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
-rw-r--r-- | sys/compat/svr4/svr4_misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index 16f7863..e9512f4 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -1377,12 +1377,15 @@ loop: * 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--; |