Re: select() in dynamically-linked code

Michel Schinz <[email protected]>
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>
Andreas Rottmann <[email protected]> writes:

[...]

> If what you describe is right (and it seems pretty plausible to me),
> it means that the curl function does not catch EINTR itself, which it
> arguably should; note this extract of the GNU libc manual:

Great, thanks for the reference. I now agree with you (and Martin)
that it's a problem with libcurl itself, which should take EINTR into
account. In fact, the problem has been discussed on the curl mailing
list recently, I just found out. A fixed version of the library
doesn't seem to be distributed yet, though. For those who are
interested in the discussion about this issue, it's there:

http://thread.gmane.org/gmane.comp.web.curl.general/4005

In the meantime, I disable SIGALRM before calling curl_easy_perform,
as Martin suggested, and it seems to work like a charm.

Thanks for your help,
Michel.
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.