blob: 11da201e1af75647abe2be950ed34e8d514e1cce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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: [PATCH gnumach 1/5] 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 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. */
--
2.1.4
|