Skip to content

Commit

Permalink
skip delay polling Windows, not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Jun 11, 2023
1 parent 74a1b41 commit a1fe2df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ void fdtask(void *v)
}

#if defined(_WIN32) || defined(_WIN64)
if (WSAPoll(pollfd, npollfd, ms) < 0)
/* if (WSAPoll(pollfd, npollfd, ms) < 0) */
#else
if (poll(pollfd, npollfd, ms) < 0)
#endif

{
if (errno == EINTR)
continue;
Expand All @@ -98,6 +96,7 @@ void fdtask(void *v)
polltask[i] = polltask[npollfd];
}
}
#endif
now = nsec();
while ((t = sleeping.head) && now >= t->alarmtime)
{
Expand Down

0 comments on commit a1fe2df

Please sign in to comment.