For nonblocking connections, wait for socket io if errno == EINTR, not EINPROGRESS.

Thanks to Paul Ashford <arougthopher@lizardland.net> for the patch.
Bug #70217 r=cls a=shaver
This commit is contained in:
seawood%netscape.com 2002-02-22 06:43:23 +00:00
parent c4c909190e
commit e942d69cd8

View File

@ -588,7 +588,7 @@ retry:
return rv;
}
#else /* BONE_VERSION */
if(!fd->secret->nonblocking && (err == EINPROGRESS)) {
if(!fd->secret->nonblocking && (err == EINTR)) {
rv = socket_io_wait(osfd, WRITE_FD, timeout);
if (rv == -1) {