From a1606981c24ee48e6aa08cdb27900e5738843bba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Fri, 17 Apr 1998 15:02:44 -0700
Subject: [PATCH] EINPROGRESS fixed

Rev: src/modules/files/file.c:1.90
---
 src/modules/files/file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/files/file.c b/src/modules/files/file.c
index 9c1e4dcda8..5b048e086d 100644
--- a/src/modules/files/file.c
+++ b/src/modules/files/file.c
@@ -5,7 +5,7 @@
 \*/
 
 #include "global.h"
-RCSID("$Id: file.c,v 1.89 1998/04/16 21:39:45 hubbe Exp $");
+RCSID("$Id: file.c,v 1.90 1998/04/17 22:02:44 hubbe Exp $");
 #include "fdlib.h"
 #include "interpret.h"
 #include "svalue.h"
@@ -1713,7 +1713,7 @@ static void file_connect(INT32 args)
   tmp=fd_connect(tmp, (struct sockaddr *)&addr, sizeof(addr));
   THREADS_DISALLOW();
 
-  if(tmp < 0)
+  if(tmp < 0 && !(errno==EINPROGRESS && (THIS->open_mode & FILE_NONBLOCKING)))
   {
     /* something went wrong */
     ERRNO=errno;
-- 
GitLab