Is it a bad idea to fork under mod_perl2?
问题 Are there any counterindications to fork under mod_perl2? Should one use another way to run background process under mod_perl2? 回答1: I usually use a cleanup handler to run anything that needs to happen after the HTTP request is complete: $r->push_handlers( PerlCleanupHandler => sub { print "I'm doing stuff!" } ); If you really need to do a fork, you shouldn't do it the regular way, because your forked process will interfere with various resources that Apache needs, like file descriptors and