Now prints a more detailed message in case the kernel stack couldn't be created.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21847 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-08-07 01:54:08 +00:00
parent 277bea40a3
commit 7e188a5b4b

View File

@ -385,9 +385,11 @@ create_thread(const char *name, team_id teamID, thread_entry_func entry,
if (thread->kernel_stack_area < 0) {
// we're not yet part of a team, so we can just bail out
dprintf("create_thread: error creating kernel stack!\n");
status = thread->kernel_stack_area;
dprintf("create_thread: error creating kernel stack: %s!\n",
strerror(status));
delete_thread_struct(thread);
return status;
}