If there are no controls, just skip creating the controls thread.
This commit is contained in:
parent
a4402f1da7
commit
eb667118cf
|
|
@ -442,9 +442,14 @@ sighandler_sharedspice(int num)
|
||||||
void
|
void
|
||||||
exec_controls(wordlist *newcontrols)
|
exec_controls(wordlist *newcontrols)
|
||||||
{
|
{
|
||||||
if (newcontrols) {
|
if (newcontrols && newcontrols->wl_word && !eq(newcontrols->wl_word,"")) {
|
||||||
shcontrols = newcontrols;
|
shcontrols = newcontrols;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
tid2 = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef THREADS
|
#ifdef THREADS
|
||||||
#ifdef HAVE_LIBPTHREAD
|
#ifdef HAVE_LIBPTHREAD
|
||||||
cont_condition = FALSE;
|
cont_condition = FALSE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue