summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-01-03 16:21:24 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-01-17 18:24:58 +0100
commit1901e7aa92ccd021d73f32aa97661428d7142cd4 (patch)
tree489e6e958c7c9eda0c3117da8c564e1cb946b5cd
parente2b1c5c20ff1ac0017e7ac8ef853ce3326210077 (diff)
libports: silence pointless error message
* libports/manage-multithread.c (adjust_priority): Silence pointless error message.
-rw-r--r--libports/manage-multithread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c
index 2067cbaa..ad22991c 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;