commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 41/98: libports: improve error handling in ports_reallocate_from_


From: Samuel Thibault
Subject: [hurd] 41/98: libports: improve error handling in ports_reallocate_from_external
Date: Tue, 14 Jan 2014 02:00:01 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 4353f92301cd903a00831a8272d149c45bbb5b8c
Author: Justus Winter <address@hidden>
Date:   Sat Nov 23 15:27:31 2013 +0100

    libports: improve error handling in ports_reallocate_from_external
    
    * libports/reallocate-from-external.c (ports_reallocate_from_external):
      Improve error handling.
---
 libports/reallocate-from-external.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libports/reallocate-from-external.c 
b/libports/reallocate-from-external.c
index cd12143..8cccb2a 100644
--- a/libports/reallocate-from-external.c
+++ b/libports/reallocate-from-external.c
@@ -60,7 +60,8 @@ ports_reallocate_from_external (void *portstruct, mach_port_t 
receive)
   pi->cancel_threshold = 0;
   pi->mscount = stat.mps_mscount;
   
-  hurd_ihash_add (&pi->bucket->htable, receive, pi);
+  err = hurd_ihash_add (&pi->bucket->htable, receive, pi);
+  assert_perror (err);
   pthread_mutex_unlock (&_ports_lock);
   
   mach_port_move_member (mach_task_self (), receive, pi->bucket->portset);

-- 
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]