Initialize threads as non-terminated.
authorcoderain <coderain@sdf.org>
Wed, 15 Feb 2017 21:22:58 +0000 (22:22 +0100)
committercoderain <coderain@sdf.org>
Wed, 15 Feb 2017 21:22:58 +0000 (22:22 +0100)
kernel/src/thread.c

index fe54a50931a994712d2ed3a3de1400dfed60a166..945e37dcb446230fedc1536e279e6cb55dad3d9f 100644 (file)
@@ -182,6 +182,7 @@ dword_t create_thread_internal(process_t *proc, thread_state_t *initial_state, d
     thread->running_ticks = 0ULL;
     thread->owner_process = proc;
     thread->exit_code = 0;
+    thread->terminated = FALSE;
     thread->syscall_lock = 0;
     thread->wait_condition = WAIT_NEVER;
     thread->wait_timestamp = 0ULL;