summaryrefslogtreecommitdiff
path: root/kern/work.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-06-18 23:35:45 +0200
committerRichard Braun <rbraun@sceen.net>2014-06-18 23:35:45 +0200
commit82dc13cf6a4b760e02729d25d6f2abb35f7d4e7c (patch)
tree0ca17e9d8cab1c6630ca532751a398c5a4172d08 /kern/work.c
parent701a5d9cf5a9416eb8303d703049bf1d4c6c69f0 (diff)
Set threads as detached where applicable
Diffstat (limited to 'kern/work.c')
-rw-r--r--kern/work.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kern/work.c b/kern/work.c
index cc6f1dd6..2865d616 100644
--- a/kern/work.c
+++ b/kern/work.c
@@ -411,6 +411,7 @@ work_thread_create(struct work_pool *pool, unsigned int id)
}
thread_attr_init(&attr, name);
+ thread_attr_set_detached(&attr);
thread_attr_set_priority(&attr, priority);
if (cpumap != NULL)