diff options
Diffstat (limited to 'libports')
-rw-r--r-- | libports/manage-multithread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index d0345826..be080304 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -20,6 +20,7 @@ #include "ports.h" #include <assert.h> +#include <error.h> #include <stdio.h> #include <mach/message.h> #include <mach/thread_info.h> @@ -82,10 +83,7 @@ out: mach_port_deallocate (mach_task_self (), pset_priv); if (err && err != EPERM) - { - errno = err; - perror ("unable to adjust libports thread priority"); - } + error (0, err, "unable to adjust libports thread priority"); } void |