diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-10 14:12:02 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-10 14:12:02 +0200 |
commit | e63639bff39099c9a7598cbb98e7713699066c8b (patch) | |
tree | 6e6d04b0b7a6a3d9e32e26654179b80d55388231 /src | |
parent | More work on mds-libinput (diff) | |
download | mds-e63639bff39099c9a7598cbb98e7713699066c8b.tar.gz mds-e63639bff39099c9a7598cbb98e7713699066c8b.tar.bz2 mds-e63639bff39099c9a7598cbb98e7713699066c8b.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kkbd.c | 4 | ||||
-rw-r--r-- | src/mds-vt.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mds-kkbd.c b/src/mds-kkbd.c index f5e69db..c6bd282 100644 --- a/src/mds-kkbd.c +++ b/src/mds-kkbd.c @@ -180,7 +180,7 @@ static pthread_t kbd_thread; /** * Whether `kbd_thread` has started */ -static int kbd_thread_started = 0; +static volatile sig_atomic_t kbd_thread_started = 0; /** * Mutex that should be used when sending message @@ -1784,7 +1784,7 @@ void received_info(int signo) iprintf("scancode buffer pointer: %i", scancode_ptr); iprintf("saved keyboard mode: %i", saved_kbd_mode); iprintf("send buffer size: %zu bytes", send_buffer_size); - iprintf("keyboard thread started: %s", connected ? "yes" : "no"); + iprintf("keyboard thread started: %s", kbd_thread_started ? "yes" : "no"); iprintf("keycode remapping tabel size: %zu", mapping_size); iprint("keycode remapping tabel:"); for (i = 0; i < mapping_size; i++) diff --git a/src/mds-vt.c b/src/mds-vt.c index 904c116..c593618 100644 --- a/src/mds-vt.c +++ b/src/mds-vt.c @@ -115,7 +115,7 @@ static int secondary_socket_fd; /** * Whether the secondary thread has been started */ -static int secondary_thread_started = 0; +static volatile sig_atomic_t secondary_thread_started = 0; /** * The secondary thread |