mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-21 23:34:18 +02:00
signal: Add missing mutex_lock/unlock around the while loop
This fixes #12.
This commit is contained in:
parent
5f01999726
commit
e69d61b2d8
1 changed files with 2 additions and 0 deletions
2
signal.c
2
signal.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue