From 01c2d36b7267d240c02089dd6863e42a9f1d80da Mon Sep 17 00:00:00 2001 From: Salikh Zakirov Date: Tue, 20 Mar 2007 21:32:41 +0300 Subject: [PATCH] hythread_exit(): detach a terminated thread --- vm/thread/src/thread_native_basic.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vm/thread/src/thread_native_basic.c b/vm/thread/src/thread_native_basic.c index 59acc32..ec4bc89 100644 --- a/vm/thread/src/thread_native_basic.c +++ b/vm/thread/src/thread_native_basic.c @@ -730,6 +730,7 @@ extern HY_CFUNC void VMCALL monitor->recursion_count = 0; hythread_monitor_exit(monitor); } + hythread_detach(NULL); os_thread_exit(0); // unreachable statement abort(); -- 1.4.1.g4455