in reply to FastCGI and mod_perl's Apache::Reload equivalent???

Hi, guys:

really appreciate all your helpful suggestions and informative links. The following is what I'm gonna try in the next step, please correct me out if I got something wrong:
  1. I will write a separate HTML file which contains lines like
    { local $SIG{USR1} = \&myapp_reload_module($modulename); kill("USR1", -$$); }
    where $modulename comes from a select-options box in this HTML file(or from a form submission). myapp_reload_module is a customized module function which reloads a module by following the ways in Apache::Reload(I will read that source though).
  2. Each time I modified a module, I only need to open this webpage, select that module from a dropdown list(select-option box), and then submit the form, the above Perl code with kill(USR1,-$$) will trigger the reloading of the selected module, Right?

I will not use kill -9 for sure, thanks shmem for this nice tip.

Best regards,

Lihao(XC)

Updated:missed out using kill(USR1, -$$) to send the signal:)

Replies are listed 'Best First'.
Re^2: FastCGI and mod_perl's Apache::Reload equivalent???
by lihao (Monk) on Dec 16, 2007 at 05:37 UTC
    Just a follow-up, I followed the above idea and have made it work for my FCGI process, pretty happy.. thanks again. :- )