summaryrefslogtreecommitdiff
path: root/debian/patches/0001-libports-silence-pointless-error-message.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-01-09 10:11:26 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-01-09 10:11:26 +0100
commit2402b673480c9fff670dbec7cc0aa08be61501bc (patch)
tree0c0455637d7161bd850f4e71dcdee60dfb32061c /debian/patches/0001-libports-silence-pointless-error-message.patch
parenteb095839b802975cada1957d5285bc2d1458e2bf (diff)
add patch series
Diffstat (limited to 'debian/patches/0001-libports-silence-pointless-error-message.patch')
-rw-r--r--debian/patches/0001-libports-silence-pointless-error-message.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/0001-libports-silence-pointless-error-message.patch b/debian/patches/0001-libports-silence-pointless-error-message.patch
new file mode 100644
index 00000000..9cc66761
--- /dev/null
+++ b/debian/patches/0001-libports-silence-pointless-error-message.patch
@@ -0,0 +1,30 @@
+From ba9d293d8fe40f6e634cf800c42ece97727ccd0f Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sat, 3 Jan 2015 16:21:24 +0100
+Subject: [PATCH hurd 1/4] 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;
+
+--
+2.1.4
+