Re: Signal Handling in mod_perl ...

2002-11-08 Thread Ged Haywood
Hi there,

On Sat, 9 Nov 2002, Sylbert L wrote:

> I have this response handler, within which I've written this signal
> handler. When I pass a signal to that particular process, it is
> handled only when a request is processed, not when the signal is
> really received

Apache has told its children to sleep until there's a request for them
to process.  That's what it does.

> What I'm trying to do is .. communicate between processes

There have been many posts to this List about IPC (Inter Process
Communication), with mod_perl, you might like to check the archives.
Without more information I wouldn't know if what you're trying to do
is a reasonable approach, but it sounds like hard work.

73,
Ged.




Signal Handling in mod_perl ...

2002-11-08 Thread Sylbert L




Hi,
 
I have this response handler, within which I've 
written this signal handler. When I pass a signal to that particular process, it 
is handled only when a request is processed, not when the signal is really 
received & all this is over a keepalive connection. I guess the Apache 
Process catches the signal .. but does nothing about it. Its only when the 
response handler is called, that the signal is passed to my signal handler. 
So in effect, my signal handler is used only when a request is processed & 
not when the signal is actually received by the process. 
 
What I'm trying to do is  .. communicate 
between processes & i'm using FIFOs ok  & i don't wanna use 
blocking IO. So when I write to a FIFO .. I want to send a custom 
signal to the appropriate process to read. Does anyone have any ideas ? see if i 
do this with perl it works just fine .. thats coz perl has control over the 
process in question .. but in this case its apache :( 
 
Thanks a bunch ..
 
Regards,
 
Sylbert L