|The stupid question is the question not asked|
Issue with ModPerl::Util::exit()by danielv (Initiate)
|on Aug 03, 2011 at 14:20 UTC||Need Help??|
danielv has asked for the
wisdom of the Perl Monks concerning the following question:
I have a code with some parts that can't be changed. From one such a part called function which should return "Access denied" in case the test failed.
Return performed by exit(1);
This works fine ... till the modperl version was changed and instead of "Access denied" message I get:"Software error: ModPerl::Util::exit: (120000) exit was called at ..."
I know that the correct way is to switch the exit to return but since I can't touch the caller this flow is impossible :(
As I can see the exit() function was changed from Apache::exit() to ModPerl::Util::exit() .
Does this change the source of my problem or I need to search deeper?
Is there any way to perform exit with saving original behavior?Thanks a lot.