new watchdog module

2009-02-04 Thread Mladen Turk
Hi, I would like to commit this module to trunk. It's a watchdog module that creates a worker threads either in parent, child via an API, and it's not for standalone use, but for other module usage like mod_heartbeat, probably mod_jk and others that need maintenance threads. The reason is becaus

Re: new watchdog module

2009-02-04 Thread Graham Leggett
Mladen Turk wrote: I would like to commit this module to trunk. It's a watchdog module that creates a worker threads either in parent, child via an API, and it's not for standalone use, but for other module usage like mod_heartbeat, probably mod_jk and others that need maintenance threads. The

Re: new watchdog module

2009-02-04 Thread Paul Querna
Mladen Turk wrote: Hi, I would like to commit this module to trunk. It's a watchdog module that creates a worker threads either in parent, child via an API, and it's not for standalone use, but for other module usage like mod_heartbeat, probably mod_jk and others that need maintenance threads.

Re: new watchdog module

2009-02-04 Thread Mladen Turk
Paul Querna wrote: Comments? I would rather make this kind of thing (scheduled tasks) part of the MPMs, as they would be able to just use one of their exists task threads to handle a scheduled task. The Simple MPM has the ability to do this. Scheduled task are just one of the problems.

Re: new watchdog module

2009-02-04 Thread Nick Kew
On Wed, 04 Feb 2009 10:38:44 -0800 Paul Querna wrote: > Mladen Turk wrote: > > I would like to commit this module to trunk. Tending to +1 in principle, subject to think-time. > > For example heartbeat would be by an order of magnitude > > simpler (I took some concepts from it) That looks like

Re: new watchdog module

2009-02-04 Thread Brian McCallister
+1 to the concept, I haven't looked at code yet. I would use this, more or less, immediately in fact. -Brian On Wed, Feb 4, 2009 at 8:09 AM, Mladen Turk wrote: > Hi, > > I would like to commit this module to trunk. > It's a watchdog module that creates a worker threads > either in parent, child

Re: new watchdog module

2009-02-04 Thread Paul Querna
Nick Kew wrote: On Wed, 04 Feb 2009 10:38:44 -0800 Paul Querna wrote: Mladen Turk wrote: I would like to commit this module to trunk. Tending to +1 in principle, subject to think-time. For example heartbeat would be by an order of magnitude simpler (I took some concepts from it) That lo

Re: new watchdog module

2009-02-04 Thread Jeff Trawick
On Wed, Feb 4, 2009 at 11:09 AM, Mladen Turk wrote: > Hi, > > I would like to commit this module to trunk. > It's a watchdog module that creates a worker threads > either in parent, child via an API, and it's not for > standalone use, but for other module usage like > mod_heartbeat, probably mod_

Re: new watchdog module

2009-02-04 Thread Paul Querna
Jeff Trawick wrote: On Wed, Feb 4, 2009 at 11:09 AM, Mladen Turk > wrote: Hi, I would like to commit this module to trunk. It's a watchdog module that creates a worker threads either in parent, child via an API, and it's not for standalone use, but f

Re: new watchdog module

2009-02-04 Thread Ruediger Pluem
On 02/04/2009 10:44 PM, Jeff Trawick wrote: > On Wed, Feb 4, 2009 at 11:09 AM, Mladen Turk wrote: > >> Hi, >> >> I would like to commit this module to trunk. >> It's a watchdog module that creates a worker threads >> either in parent, child via an API, and it's not for >> standalone use, but fo

random number generation

2009-02-04 Thread Matthew Rushton
Hi,   I'm writing an apache module and need to generate a random number to handle a request. The random numbers must be unique across requests and thus across forks. My problem is coming up with a way to seed the random numbers in an efficient way. I imagine I'll need to use some combination of

Re: new watchdog module

2009-02-04 Thread Jeff Trawick
On Wed, Feb 4, 2009 at 5:02 PM, Ruediger Pluem wrote: > > > On 02/04/2009 10:44 PM, Jeff Trawick wrote: > > On Wed, Feb 4, 2009 at 11:09 AM, Mladen Turk wrote: > > > >> Hi, > >> > >> I would like to commit this module to trunk. > >> It's a watchdog module that creates a worker threads > >> eithe

Re: random number generation

2009-02-04 Thread Ruediger Pluem
On 02/04/2009 11:06 PM, Matthew Rushton wrote: > Hi, > I'm writing an apache module and need to generate a random number to handle > a request. > The random numbers must be unique across requests and thus across forks. My > problem is > coming up with a way to seed the random numbers in an ef

Re: new watchdog module

2009-02-04 Thread Graham Leggett
Ruediger Pluem wrote: This seems to be a very valid concern to me. Plus in the parent it runs with root privileges and we should minimize the code that runs with these privileges, even more so as an author of code that uses the watchdog may not really be aware that its code is running under roo

Re: new watchdog module

2009-02-04 Thread Mladen Turk
Ruediger Pluem wrote: I would like to commit this module to trunk. It's a watchdog module that creates a worker threads either in parent, child via an API, and it's not for standalone use, but for other module usage like mod_heartbeat, probably mod_jk and others that need maintenance threads.

Re: new watchdog module

2009-02-04 Thread Plüm, Rüdiger, VF-Group
> -Ursprüngliche Nachricht- > Von: Mladen Turk > Gesendet: Donnerstag, 5. Februar 2009 06:36 > An: dev@httpd.apache.org > Betreff: Re: new watchdog module > > Ruediger Pluem wrote: > > > >>> > >>> I would like to commit this module to trunk. > >>> It's a watchdog module that creates