cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: stderr crash (was Re: release count-down)

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 11 May 2005 12:20:50 +0200 (CEST)

On Tue, 10 May 2005, Ben Greear wrote:

> I was thinking that this would automatically cause the curl_easy_perform to
> return, but now I think that instead I am cleaning up it's memory when it is
> still trying to use it.

It certainly sounds like that's a valid risk.

> Is there some way to gracefully cause curl_easy_perform() to stop what it's
> doing and return immediately?

Only by returning an error from one of the callbacks.

> If not, I can just kill the process with kill SIGKILL or call exit() in the
> callback instead of trying to gracefully clean up....

Sure, if the process is gonna die anyway you can just as well do that!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-05-11