summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-27 16:20:17 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-27 17:08:51 +0200
commit9f179b1ab674355d5afbb6d664dee2d2ac6cb89c (patch)
treef2c46967b1aadd078d6def85a78e7b9d10def325
parent3d686a483df3e50904b0c92a5590416bf440e3b9 (diff)
libdiskfs: improve error handling
* libdiskfs/boot-start.c (start_execserver): Improve error handling.
-rw-r--r--libdiskfs/boot-start.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index d10d783f..6b829f2b 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -637,15 +637,18 @@ start_execserver (void)
assert_perror (err);
right = ports_get_send_right (execboot_info);
ports_port_deref (execboot_info);
- task_set_special_port (diskfs_exec_server_task, TASK_BOOTSTRAP_PORT, right);
- mach_port_deallocate (mach_task_self (), right);
+ err = task_set_special_port (diskfs_exec_server_task, TASK_BOOTSTRAP_PORT, right);
+ assert_perror (err);
+ err = mach_port_deallocate (mach_task_self (), right);
+ assert_perror (err);
if (_diskfs_boot_pause)
{
printf ("pausing for exec\n");
getc (stdin);
}
- task_resume (diskfs_exec_server_task);
+ err = task_resume (diskfs_exec_server_task);
+ assert_perror (err);
printf (" exec");
fflush (stdout);