This commit is contained in:
Samuel Thibault 2018-07-11 21:24:50 +00:00 committed by GitHub
commit 6e02e51710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,9 @@ void *signal_thread(void *arg)
printf("espeakup caught signal %d\n", sig);
break;
}
pthread_mutex_lock(&queue_guard);
}
pthread_mutex_unlock(&queue_guard);
/* Tell the reader to stop, if it is in a select() call. */
write(PIPE_WRITE_FD, STOP_MSG, strlen(STOP_MSG));
return NULL;