Skip to content

Commit 9536fa1

Browse files
committed
fix: apply suggestions from ai code review
1 parent f18010d commit 9536fa1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

event/evport.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ int iowatcher_poll_events(hloop_t* loop, int timeout) {
124124
}
125125
unsigned nevents = 1;
126126
if (port_getn(evport_ctx->port, evport_ctx->events, evport_ctx->capacity, &nevents, tp) != 0) {
127+
if (errno == EINTR) {
128+
return 0;
129+
}
130+
perror("port_getn");
127131
return -1;
128132
}
129133
for (int i = 0; i < nevents; ++i) {

0 commit comments

Comments
 (0)