From 9e054aff585d626fc663985a2d74e3d7b22ed916 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 30 May 2020 11:10:22 -0600 Subject: [PATCH] provide more info if tasklist threads cannot be created --- libs/ardour/rt_tasklist.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/rt_tasklist.cc b/libs/ardour/rt_tasklist.cc index 80f5b310aa..be9a5a79b5 100644 --- a/libs/ardour/rt_tasklist.cc +++ b/libs/ardour/rt_tasklist.cc @@ -16,6 +16,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include +#include #include "pbd/pthread_utils.h" @@ -91,7 +93,7 @@ RTTaskList::reset_thread_list () pthread_attr_init (&attr); pthread_attr_setstacksize (&attr, PBD_RT_STACKSIZE_HELP); if (pthread_create (&thread_id, &attr, _thread_run, this)) { - PBD::fatal << _("Cannot create thread for TaskList!") << endmsg; + PBD::fatal << _("Cannot create thread for TaskList! (%s") << strerror(errno) << ')' << endmsg; /* NOT REACHED */ } pthread_attr_destroy (&attr);