From babb522465c0a3339dfea673d2e6c85d304606f3 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sun, 5 Jul 2015 00:14:30 +0200 Subject: kern: improve error handling * kern/bootstrap.c (boot_script_exec_cmd): Improve error handling. --- kern/bootstrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kern/bootstrap.c b/kern/bootstrap.c index 4edae7bf..e70e1f68 100644 --- a/kern/bootstrap.c +++ b/kern/bootstrap.c @@ -725,7 +725,8 @@ boot_script_exec_cmd (void *hook, task_t task, char *path, int argc, assert(err == 0); thread->saved.other = &info; thread_start (thread, user_bootstrap); - thread_resume (thread); + err = thread_resume (thread); + assert(err == 0); /* We need to synchronize with the new thread and block this main thread until it has finished referring to our local state. */ -- cgit v1.2.3