aseek-devel  

[aseek-devel] Updated daemon.cpp, daemon.h, and searchd.conf.5.ep.in files

John Hansen
Mon, 12 Apr 2004 08:34:43 -0700

Attached, a patch for ASPseek CVS HEAD that implements a new
searchd.conf parameter 'MaxIdleTime' to allow started threads to die off
after the configured amount of seconds.

It has a bug however, that I've been unable to fix, mainly due to my
lack of understanding of the thread logic that was originally
implemented which will be aparent when you read the patch. :)

Under certain circumstances, specifically, after a few bursts of threads
starting, and subsequently dying off, repeating this a few times,
searchd will segfault.

If someone can come up with a better solution for letting threads die
off, it would be much appreciated.

Regards,

John Hansen

Attachment: searchd.conf.5.ep.in.patch
Description: searchd.conf.5.ep.in.patch

Attachment: daemon.cpp.patch
Description: daemon.cpp.patch

Attachment: daemon.h.patch
Description: daemon.h.patch