From 11ff9204cf9b2fd451bf8e0e0dd3fe3f078c2808 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 11 Aug 2011 23:15:05 +0000 Subject: libs/nixio: fix possible issue with nonblocking bind() --- libs/nixio/src/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/nixio/src/bind.c') diff --git a/libs/nixio/src/bind.c b/libs/nixio/src/bind.c index 81ab0bb480..711205955c 100644 --- a/libs/nixio/src/bind.c +++ b/libs/nixio/src/bind.c @@ -180,7 +180,7 @@ static int nixio_sock__bind_connect(lua_State *L, int do_bind) { } /* on success */ - if (!status) { + if (!status || errno == EINPROGRESS) { break; } } -- cgit v1.2.3