From eedb44f2d851ac05a9ecfb76c37ee9e08188e431 Mon Sep 17 00:00:00 2001 From: Jeffrey Benjamin Brown Date: Thu, 14 May 2026 22:45:16 -0500 Subject: [PATCH] Treat poll hangups as input errors --- src/platform/linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/linux.c b/src/platform/linux.c index 129835d..081bba8 100644 --- a/src/platform/linux.c +++ b/src/platform/linux.c @@ -31,7 +31,7 @@ int monome_platform_wait_for_input(monome_t *monome, uint_t msec) { if( !poll(fds, 1, msec) ) return 1; - if (fds->revents & POLLERR) + if (fds->revents & (POLLHUP | POLLERR | POLLNVAL)) return -1; return 0;