From 4b7efac3dca4ee25e4ac466233fd5e074ec484f7 Mon Sep 17 00:00:00 2001 From: Matthias von Faber Date: Mon, 8 Jun 2020 07:03:47 +0200 Subject: [PATCH] Report true error when tasklist threads cannot be created pthreads doesn't use errno, so the error message was misleading. --- libs/ardour/rt_tasklist.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/ardour/rt_tasklist.cc b/libs/ardour/rt_tasklist.cc index b01ccd53e6..e0d6c475f3 100644 --- a/libs/ardour/rt_tasklist.cc +++ b/libs/ardour/rt_tasklist.cc @@ -16,7 +16,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include #include #include "pbd/pthread_utils.h" @@ -92,7 +91,7 @@ RTTaskList::reset_thread_list () pbd_pthread_create (PBD_RT_STACKSIZE_HELP, &thread_id, _thread_run, this); if (rv) { - PBD::fatal << _("Cannot create thread for TaskList! (") << strerror(errno) << ')' << endmsg; + PBD::fatal << _("Cannot create thread for TaskList! (") << strerror(rv) << ')' << endmsg; /* NOT REACHED */ } pbd_mach_set_realtime_policy (thread_id, 5. * 1e-5);