aseek-devel  

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

John Hansen
Wed, 14 Apr 2004 06:01:08 -0700

Attached, patch in unified diff format.

This patch includes changes to searchd.conf

... John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hansen
Sent: Tuesday, April 13, 2004 1:35 AM
To: [EMAIL PROTECTED]
Subject: [aseek-devel] Updated daemon.cpp, daemon.h, and
searchd.conf.5.ep.in files

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: unified.diff
Description: unified.diff