diff --git a/src/threads.h b/src/threads.h index d89c7cd2a65e5943d6cce280385452ce6bdd2ed4..ab4a6a6c6a261a41800920207aa43cb2032af301 100644 --- a/src/threads.h +++ b/src/threads.h @@ -109,7 +109,7 @@ extern struct object *thread_id; #define th_setconcurrency(X) thr_setconcurrency(X) -#define th_create(ID,fun,arg) thr_create(NULL,0,fun,arg,THR_DAEMON,ID) +#define th_create(ID,fun,arg) thr_create(NULL,0,fun,arg,THR_DAEMON|THR_DETACHED,ID) #define th_exit(foo) thr_exit(foo) #define th_self() thr_self() #define th_yield() thr_yield()