/branches/tracing/kernel/generic/src/ipc/ipc.c |
---|
659,12 → 659,14 |
spinlock_unlock(&ta->lock); |
/* FIXME: locking! */ |
ta->kb_thread = thread_create(kbox_thread_proc, |
NULL, ta, 0, "kbox", false); |
if (!ta->kb_thread) |
return ENOMEM; |
if (ta->kb_thread == NULL) { |
ta->kb_thread = thread_create(kbox_thread_proc, |
NULL, ta, 0, "kbox", false); |
if (!ta->kb_thread) |
return ENOMEM; |
thread_ready(ta->kb_thread); |
thread_ready(ta->kb_thread); |
} |
return newphid; |
} |