Skip to content

multi: skip EINTR check on wakeup socket if it was closed#5047

Closed
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_eintr_check_on_wakeup_socket
Closed

multi: skip EINTR check on wakeup socket if it was closed#5047
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_eintr_check_on_wakeup_socket

Conversation

@jay
Copy link
Member

@jay jay commented Mar 6, 2020

  • Don't check errno on wakeup socket if sread returned 0 since sread
    doesn't set errno in that case.

This is a follow-up to cf7760a from several days ago which fixed
Curl_multi_wait to stop busy looping sread on the non-blocking wakeup
socket if it was closed (ie sread returns 0). Due to a logic error it
was still possible to busy loop in that case if errno == EINTR.

Closes #xxxx

- Don't check errno on wakeup socket if sread returned 0 since sread
  doesn't set errno in that case.

This is a follow-up to cf7760a from several days ago which fixed
Curl_multi_wait to stop busy looping sread on the non-blocking wakeup
socket if it was closed (ie sread returns 0). Due to a logic error it
was still possible to busy loop in that case if errno == EINTR.

Closes #xxxx
@jay jay closed this in 2258b7b Mar 6, 2020
@jay jay deleted the fix_eintr_check_on_wakeup_socket branch March 6, 2020 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants