idle_timeout processing in the parent smbd?

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Jun 4 16:22:29 GMT 2007


On Mon, Jun 04, 2007 at 08:44:47AM -0700, James Peach wrote:
> How can you distinguish between an event that represents real work and  
> an event that represents internal housekeeping?
> 
> >What to others think about an idle event API that says
> >"please run me every minute if you can, but every ten
> >minutes at least" or something like this?
> 
> This seems like something that's generically useful. The hardest part  
> aboout idle events is when the definition of idle depends on another  
> subsystem. for example, it's quite easy for an LDAP subsystem to track  
> the last time it was called and idle out that way. For exit on idle,  
> however, the idle event needs to be able to introspect other events  
> and figure out the last time they were idle.

Well, probably in that particular case the best thing would
be to just exit once the number of children drops to zero.
Why wait at all?

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070604/d8e52079/attachment.bin


More information about the samba-technical mailing list