commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 03/23: libdiskfs: improve error handling


From: Samuel Thibault
Subject: [hurd] 03/23: libdiskfs: improve error handling
Date: Tue, 13 Oct 2015 00:09:54 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 9f179b1ab674355d5afbb6d664dee2d2ac6cb89c
Author: Justus Winter <address@hidden>
Date:   Sun Sep 27 16:20:17 2015 +0200

    libdiskfs: improve error handling
    
    * libdiskfs/boot-start.c (start_execserver): Improve error handling.
---
 libdiskfs/boot-start.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index d10d783..6b829f2 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]