Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2835 → Rev 2836

/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;
}