From ec29f0842c9a787eeca9f2ce3783cd61bc7ad39e Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 4 Apr 2009 21:59:37 +0000 Subject: [PATCH] bonefish + mmlr: Don't really resume the undertaker thread after creating it, since at that point the scheduler has not been started yet. Didn't do any harm, since it was only the second thread anyway and the idle thread was rescheduled almost immediately. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29908 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/thread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp index 8e5aebdbe6..c20a049fdb 100644 --- a/src/system/kernel/thread.cpp +++ b/src/system/kernel/thread.cpp @@ -216,7 +216,7 @@ create_thread_struct(struct thread *inthread, const char *name, } else { thread = inthread; } - + if (!recycled) scheduler_on_thread_create(thread); @@ -259,7 +259,7 @@ create_thread_struct(struct thread *inthread, const char *name, thread->select_infos = NULL; thread->post_interrupt_callback = NULL; thread->post_interrupt_data = NULL; - + sprintf(temp, "thread_%ld_retcode_sem", thread->id); thread->exit.sem = create_sem(0, temp); if (thread->exit.sem < B_OK) @@ -277,7 +277,7 @@ create_thread_struct(struct thread *inthread, const char *name, if (arch_thread_init_thread_struct(thread) < B_OK) goto err4; - + return thread; err4: @@ -2107,7 +2107,7 @@ thread_init(kernel_args *args) B_DISPLAY_PRIORITY, NULL); if (undertakerThread < 0) panic("Failed to create undertaker thread!"); - resume_thread(undertakerThread); + send_signal_etc(undertakerThread, SIGCONT, B_DO_NOT_RESCHEDULE); // set up some debugger commands add_debugger_command_etc("threads", &dump_thread_list, "List all threads",