From 7421749f450d9845574a64476a7bebbf8555e8d7 Mon Sep 17 00:00:00 2001 From: spv Date: Wed, 24 Sep 2025 18:42:02 -0400 Subject: refactor, change timeout to 5s --- src/keypress_thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/keypress_thread.c') diff --git a/src/keypress_thread.c b/src/keypress_thread.c index a174968..1b102d4 100644 --- a/src/keypress_thread.c +++ b/src/keypress_thread.c @@ -15,12 +15,12 @@ void on_press(void) { // XXX signal light thread } -int keypress_thread(pid_t _light_pid) { +void keypress_thread(pid_t _light_pid) { light_pid = _light_pid; FILE* fp = fopen(KEYBOARD_FILE, "r"); fseek(fp, 0, SEEK_END); - + void* discard = malloc(KEYPRESS_SIZE); while (1) { @@ -34,5 +34,5 @@ int keypress_thread(pid_t _light_pid) { // XXX handle SIGINT or whatever - return 0; + __builtin_unreachable(); } -- cgit v1.2.3