diff --git a/src/core/ev.c b/src/core/ev.c index 552cd640..ce45b6c1 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -1408,9 +1408,9 @@ static void janet_ev_setup_selfpipe(void) { /* Handle events from the self pipe inside the event loop */ static void janet_ev_handle_selfpipe(void) { -recur: JanetSelfPipeEvent response; int status; +recur: do { status = read(janet_vm.selfpipe[0], &response, sizeof(response)); } while (status == -1 && errno == EINTR);