From eb667118cfe31801dc1327b5d03ded4497bd2a84 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 2 Oct 2019 22:02:57 +0200 Subject: [PATCH] If there are no controls, just skip creating the controls thread. --- src/sharedspice.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index c6f55f44a..cabfd9928 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -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;