Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Parallel-ForkManager CPAN distribution.

Report information
The Basics
Id: 39003
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Parallel-ForkManager

People
Owner: dlux [...] dlux.hu
Requestors: bdfoy [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Use CORE::exit
I ran into a problem using Parallel-ForkManager with Tk, which overrides exit(). Since the Parallel::ForkManager also calls exit(), it ends up calling Tk's exit and confuses Tk. In finish(), I changed exit() to CORE::exit() and the problem went away.
Hi, Added the change to the SVN. I cannot really test it. Please do and let me know if you have any problems with that. I'll do a release sometime in the future with the rest of the open bugs fixed. thanks, Balázs
From: viktor [...] spamfence.net
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.
RT-Send-CC: viktor [...] spamfence.net
Hi All, I released 0.7.6 with CORE::exit. Please test it and let me know. :) Balázs @Viktor: thanks for pinging the bug. :) Szia! :)