From 01779f7349f750207142e1bce16bacfb061556ba Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 4 Oct 2020 00:56:51 +0200 Subject: [PATCH] Break out of poll on signal --- main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main.c b/main.c index 8612c68..2aee7b6 100644 --- a/main.c +++ b/main.c @@ -363,13 +363,7 @@ static int display_poll(struct wl_display *display, short int events, int timeou struct pollfd pfd[1]; pfd[0].fd = wl_display_get_fd(display); pfd[0].events = events; - - int ret; - do { - ret = poll(pfd, 1, timeout); - } while (ret == -1 && errno == EINTR); - - return ret; + return poll(pfd, 1, timeout); } static int display_dispatch_with_timeout(struct wl_display *display, int timeout) {