If there are no controls, just skip creating the controls thread.

This commit is contained in:
Holger Vogt 2019-10-02 22:02:57 +02:00
parent a4402f1da7
commit eb667118cf
1 changed files with 6 additions and 1 deletions

View File

@ -442,9 +442,14 @@ sighandler_sharedspice(int num)
void
exec_controls(wordlist *newcontrols)
{
if (newcontrols) {
if (newcontrols && newcontrols->wl_word && !eq(newcontrols->wl_word,"")) {
shcontrols = newcontrols;
}
else {
tid2 = 0;
return;
}
#ifdef THREADS
#ifdef HAVE_LIBPTHREAD
cont_condition = FALSE;