[qwaq] Fix a silly that caused qwaq-app to spawn twice

progs_t is very much most definitely NOT thread-safe (ie, two threads
using the same progs_t). It was actually rather funny when I figured out
what was going on to cause qwaq's universe to explode.
This commit is contained in:
Bill Currie 2020-03-25 00:44:04 +09:00
parent 48c65b3363
commit 1e56a8efbc

View file

@ -456,7 +456,7 @@ main (int argc, char **argv)
size_t count = thread_data.size;
for (size_t i = 0; i < count; i++) {
if (thread_data.a[i]->pr && thread_data.a[i]->main_func) {
start_progs_thread (thread_data.a[main_ind]);
start_progs_thread (thread_data.a[i]);
}
}
pthread_join (thread_data.a[main_ind]->thread_id, 0);