Here's another wish for CORE::exit. I nearly opened a new bug for this:
To make Parallel::ForkManager work better within mod_perl, it would be
most helpful to replace line 307
exit ($x || 0);
with
CORE::exit ($x || 0);
Of course, there are many different things to consider if you want to
use forks from inside mod_perl, see
http://modperlbook.org/html/10-2-Forking-and-Executing-Subprocessesfrom-mod_perl.html
- most of these can be taken into account from the client code. But when
"exit" is called, mod_perl throws its hands up (ModPerl::Util::exit
leading to an APR::Error) because it overwrites "exit". Thus, the only
way to use Parallel::ForkManager from mod_perl is to replace "exit" with
"CORE::exit". I don't see how that would disturb anything else, unless
people rely on overwritten "exit" behaviour.
A new release would be helpful to find CORE::exit eventually in
distribution packages.
Thanks for this nice module,
szia
Viktor.