cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: curl and signals

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 27 Mar 2001 23:24:52 +0200 (MET DST)

On Tue, 27 Mar 2001, Bescon, Guenole wrote:

> Is this bug easily fixable ?

Yes.

> If yes what are the source files involved ?

Fix this problem with this patch (or get it from CVS):

RCS file: /cvsroot/curl/lib/transfer.c,v
retrieving revision 1.28
diff -u -r1.28 transfer.c
--- transfer.c 2001/03/26 06:19:11 1.28
+++ transfer.c 2001/03/27 21:23:31
@@ -960,6 +960,10 @@
     conn->newurl = NULL;
   }

+ /* make sure the alarm is switched off! */
+ if(data->timeout || data->connecttimeout)
+ myalarm(0);
+
   return res;
 }

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-03-27