bagder: curl-www/libcurl/hiper hiper-2.patch, 1.1, NONE hiper-3.patch, NONE, 1.1

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/libcurl/hiper
In directory labb:/tmp/cvs-serv6965

Added Files:
	hiper-3.patch 
Removed Files:
	hiper-2.patch 
Log Message:
go with -3 instead!


--- hiper-2.patch DELETED ---

--- NEW FILE: hiper-3.patch ---
Index: lib/ftp.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/ftp.c,v
retrieving revision 1.342
diff -u -r1.342 ftp.c
--- lib/ftp.c	11 Dec 2005 23:37:59 -0000	1.342
+++ lib/ftp.c	22 Dec 2005 15:36:57 -0000
@@ -95,6 +95,7 @@
 #include "select.h"
 #include "parsedate.h" /* for the week day and month names */
 #include "sockaddr.h" /* required for Curl_sockaddr_storage */
+#include "multiif.h"
 
 #if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
 #include "inet_ntoa_r.h"
@@ -698,27 +699,24 @@
 }
 
 /* For the FTP "protocol connect" and "doing" phases only */
[...1676 lines suppressed...]
+      printf("MAJOR ERROR: fork() failed!\n");
+      break;
+    }
+
+    /* 0 is returned to the child */
+    if(0 == rc) {
+#endif
     logmsg("====> Client connect");
 
     do {
@@ -792,6 +856,9 @@
 
     if (req.testno == DOCNUMBER_QUIT)
       break;
+#ifdef FORK_ENABLE
+    }
+#endif
   }
 
   sclose(sock);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.