Re: Threading in tux modules

Ingo Molnar <[email protected]>
Newsgroups gmane.network.tux
Message-ID <[email protected]>
On Fri, 5 Apr 2002, Jason Borden wrote:

> I have a project I'm working on that caches data received from an ldap
> directory and runs a background thread to refresh the cache when the
> data changes. I've run into some issues with running threads inside of a
> tux module, but have found a way to make it work. For some reason, I am
> unable to make the thread work if it is created at the TUXAPI_init
> stage, [...]

TUXAPI_init is executed before the main TUX processes are forked - those
processes have a separate VM so the threads created in TUXAPI_init wont
work as expected.

perhaps there should be an optional TUXAPI_init_postfork call as well?

	Ingo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.