Merge branch 'master' into issue-38-task-execution

This commit is contained in:
Bryan Stansell 2020-05-01 08:50:14 -07:00 committed by GitHub
commit 2a089dff46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -931,10 +931,11 @@ ConsInit(CONSENT *pCE)
# endif
if (!SetFlags(cofile, O_NONBLOCK, 0))
goto fail;
if ((ret =
connect(cofile, rp->ai_addr,
rp->ai_addrlen)) == 0)
goto success;
ret = connect(cofile, rp->ai_addr, rp->ai_addrlen);
if (ret == 0 || errno == EINPROGRESS)
goto success;
fail:
close(cofile);
}