scsh-users
[Top] [All Lists]

Re: select() in dynamically-linked code

To: scsh-users@scsh.net
Subject: Re: select() in dynamically-linked code
From: Michel Schinz <Michel.Schinz@epfl.ch>
Date: Thu, 13 Jan 2005 20:37:14 +0100
Cancel-lock: sha1:4tNpDl1Eh41dHZui8eAOebWJdEA=
List-id: <scsh-users.list-id.scsh.net>
Sender: news <news@sea.gmane.org>
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.

<Prev in Thread] Current Thread [Next in Thread>