--- src/sys/platform/vkernel/i386/trap.c 2008/04/14 12:01:52 1.30 +++ src/sys/platform/vkernel/i386/trap.c 2008/04/24 08:53:02 1.31 @@ -237,8 +237,11 @@ recheck: /* * If the jungle wants us dead, so be it. */ - if (lp->lwp_flag & LWP_WEXIT) + if (lp->lwp_flag & LWP_WEXIT) { + get_mplock(); lwp_exit(0); + rel_mplock(); /* NOT REACHED */ + } /* * Block here if we are in a stopped state.