in reply to Perl and Apache… Process keeps running.

Here is an example , Watching long processes through CGI (Aug 02)
  • Comment on Re: Perl and Apache… Process keeps running.

Replies are listed 'Best First'.
Re^2: Perl and Apache… Process keeps running.
by clintonm9 (Sexton) on Jan 14, 2010 at 05:11 UTC
    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!
      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