RE: interruptible curl_easy_perform()
Date: Thu, 15 Feb 2007 14:54:30 -0800
> On Thu, 15 Feb 2007, Bryan Henderson wrote:
> > It ought to be possible to interrupt curl_easy_perform() with a
> > It is a relatively recent addition to POSIX; there are probably
> > don't have it. On such a system you can emulate it with sigaction()
> > select(), but that leaves a tiny window in which the process might
> > signal and wait anyhow. With older Linux kernels, pselect()
> > that same window exposed. Note that isn't any worse than libcurl's
> > logic, in which it _always_ waits in spite of receiving signals.
> Yeah, we want libcurl to remain working on system it runs on today so
> need a version for non-pselect() systems as well.
Agreed. Some of us are using libcurl on OSes that barely have proper
sockets support; POSIX/Linux signal support or emulation on these
systems is likewise non-existent.
Received on 2007-02-16