diff --git a/src/system/libroot/os/thread.c b/src/system/libroot/os/thread.c index 41721453d3..0f14f29d9d 100644 --- a/src/system/libroot/os/thread.c +++ b/src/system/libroot/os/thread.c @@ -110,6 +110,7 @@ spawn_thread(thread_func entry, const char *name, int32 priority, void *data) __pthread_init_creation_attributes(NULL, thread, &thread_entry, entry, thread, name, &attributes); + thread->flags |= THREAD_DETACHED; attributes.priority = priority; @@ -256,4 +257,3 @@ snooze_until(bigtime_t timeout, int timeBase) { return _kern_snooze_etc(timeout, timeBase, B_ABSOLUTE_TIMEOUT, NULL); } -