summaryrefslogtreecommitdiff
path: root/kern/bootstrap.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-05 00:14:30 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-09 19:34:03 +0200
commitbabb522465c0a3339dfea673d2e6c85d304606f3 (patch)
tree2ab313cf2d2ffc1fbd59782ebb5d35a32d142e67 /kern/bootstrap.c
parenteaee9424a120c289abc3eeeff331cb0d45efe971 (diff)
kern: improve error handling
* kern/bootstrap.c (boot_script_exec_cmd): Improve error handling.
Diffstat (limited to 'kern/bootstrap.c')
-rw-r--r--kern/bootstrap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 4edae7b..e70e1f6 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. */