cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl strange behaviour

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Nov 2001 21:51:45 +0100 (MET)

On Wed, 14 Nov 2001, Julien MOUTTE wrote:

> On a forked daemon you mean that i should make the global init and global
> cleanup in the master process and clean nothing in the childs ??
>
> This sounds weird to me... :)

Well, that's why they're called GLOBAL init and cleanup! You should make an
easy init and cleanup in every separate thread though.

> Just installed 7.9.1 and the problem is still the same...

I expected no less...

> I'll try to move the global initing and cleaning in the father forking
> process but i think it will lead me to some mem leaks because of the
> forked childs who exit trough different methods.

"exit trough different methods" ? They should all do easy_init and
easy_cleanup, then there shouldn't be any leaks on curl's part.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-11-14