curl-library
Alarm Signal in Solaris Apps (Was: Re: Curl ftp fails with select error: 4
Date: Thu, 11 Dec 2003 13:39:07 +0100
(EINTR))
Reply-To:
In-Reply-To: <3FD858AD.4040406_at_micromuse.com>
Organization: HEITEC AG
Hi!
On Thu, 11 Dec 2003, Renate Bahnemann wrote:
> I had a similar problem on 7.10.7 a few weeks ago (on Solaris 8).
> I traced the problem to a low-level system call in libcurl being
> interrupted by an alarm signal that was coming from our application.
Are you sure the alaram signal came from your application in the sense that
it was generated by your application? I'm also experiencing alaram signals
on Solaris 8 64 bit with a thread test program. Could this be a bug in the
Solaris kernel and/or the Solaris pthread lib?
> I solved the problem (I think) by using sigprocmask() to block SIGALRM
> before the call to curl_easy_perform() and then unblocking it afterwards.
Are you sure this is a real solution to the problem rather than a workaround
to prevent the alaram signal from interrupting libcurl?
Thanks in advance for any info!
Greetings,
Holger
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-11