signal handling to cleanup on SIGINT and SIGTERM, followup

This commit is contained in:
Yang Tse
2009-12-09 18:41:43 +00:00
parent ebe5339003
commit 0653fa107f
2 changed files with 19 additions and 2 deletions

View File

@@ -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)