mirror of
https://github.com/curl/curl.git
synced 2026-08-26 10:23:31 +03:00
signal handling to cleanup on SIGINT and SIGTERM, followup
This commit is contained in:
parent
ebe5339003
commit
0653fa107f
2 changed files with 19 additions and 2 deletions
|
|
@ -203,7 +203,7 @@ int wait_ms(int timeout_ms)
|
|||
if(r != -1)
|
||||
break;
|
||||
error = SOCKERRNO;
|
||||
if(error == EINVAL)
|
||||
if(error && (error != EINTR))
|
||||
break;
|
||||
pending_ms = timeout_ms - (int)curlx_tvdiff(curlx_tvnow(), initial_tv);
|
||||
if(pending_ms <= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue