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:
parent
277bea40a3
commit
7e188a5b4b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user