Andreas Rottmann <a.rottmann@gmx.at> 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.
|