in reply to Re: Perl and Apache… Process keeps running.
in thread Perl and Apache… Process keeps running.

i think this will still have the same problem I mentioned. If you leave the page it will still keep running.. from the column: Also, the child process has no awareness if the parent is finally disinterested, and continues merrily chugging away to produce a result that no-one will see. Perhaps that can be fixed in another revision of the program. But until next time, enjoy!
  • Comment on Re^2: Perl and Apache… Process keeps running.

Replies are listed 'Best First'.
Re^3: Perl and Apache… Process keeps running.
by Anonymous Monk on Jan 14, 2010 at 05:33 UTC
    Um, the technique shows you how to separate the actions of the parent from those of the child without hanging the webserver. This is the most important part. Adding a kill button is SMOP, 5 lines at most
    • store child pid
    • detect kill request
    • get pid
    • kill pid
    • cleanup or whatever