commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 26/37: libports: silence pointless error message


From: Samuel Thibault
Subject: [hurd] 26/37: libports: silence pointless error message
Date: Mon, 09 Feb 2015 09:59:11 +0000

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

sthibault pushed a commit to annotated tag upstream/hurd/0.5.git20150208
in repository hurd.

commit 1901e7aa92ccd021d73f32aa97661428d7142cd4
Author: Justus Winter <address@hidden>
Date:   Sat Jan 3 16:21:24 2015 +0100

    libports: silence pointless error message
    
    * libports/manage-multithread.c (adjust_priority): Silence pointless
    error message.
---
 libports/manage-multithread.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c
index 2067cba..ad22991 100644
--- a/libports/manage-multithread.c
+++ b/libports/manage-multithread.c
@@ -50,6 +50,11 @@ adjust_priority (unsigned int totalthreads)
   thread_switch (MACH_PORT_NULL, SWITCH_OPTION_DEPRESS, t);
 
   err = get_privileged_ports (&host_priv, NULL);
+  if (err == MACH_SEND_INVALID_DEST)
+    /* This is returned if we neither have the privileged host control
+       port cached nor have a proc server to talk to.  Give up.  */
+    return;
+
   if (err)
     goto error_host_priv;
 

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