summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2003-01-13 22:44:23 +0000
committerdillon <dillon@FreeBSD.org>2003-01-13 22:44:23 +0000
commite08a8297e2779e8d6e2160c041440e8f3908ece8 (patch)
tree3acf768b7f4fe0d03744d1450b85224caeb18df9 /sys/compat
parent7558240f5690462141d1e37d1edf444520a3afc8 (diff)
downloadFreeBSD-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
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/svr4/svr4_misc.c5
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--;
OpenPOWER on IntegriCloud