curl-library
Re: Usage of sigsetjmp in libcurl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 21 Jun 2002 13:10:45 +0200 (MET DST)
Date: Fri, 21 Jun 2002 13:10:45 +0200 (MET DST)
On Fri, 21 Jun 2002, Gautam Mani wrote:
> I just noticed that sigsetjmp/siglongjmp are being used in libcurl. Doesnt
> this make the library MT-unsafe?
The timing out of name resolves has always been MT-unsafe, as it uses
signals. The only difference the sigsetjmp/siglongjmp do to this that I can
think of, is that they actually make things work for single-thread
situations...
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/Received on 2002-06-21