cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SIGTERM signal interrupt

From: Jason Corcoran <jcorcoran_at_informatica.com>
Date: Wed, 10 Feb 2010 14:13:48 -0800

On Wed, 2010-02-10 at 22:58 +0100, Daniel Stenberg wrote:

> On Wed, 10 Feb 2010, miniko_at_gmx.net wrote:
>
> (Original mail is at http://curl.haxx.se/mail/archive-2010-02/0013.html I'm
> cc'ing this to the curl-library list as that's where libcurl-related
> discussions belong.)
>
> > I have a huge problem with my program that uses many Curl handles. Each Curl
> > handel used in his own thread and runs in an infinite loop.
> >
> > My code in the threads that concern the curl handle:
>
> > try{
> > result = curl_easy_perform(curl); //OK
> > }
> > catch(...){
> > ...
> > }
>
> libcurl is plain C and cannot and will not ever cause a C++ exception: that
> try catch thing is pointless.
>

Not really, while the library is C the app that is implementing it seems
to be C++. So he can wrap the libCurl API calls in whatever C++ voodoo
he wants to.

Now, weather or not he catches the correct exception is another issue
all together.

Jason

http://vip.informatica.com/?elqPURLPage=7064

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-10