danielv has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Issue with ModPerl::Util::exit()
by moritz (Cardinal) on Aug 03, 2011 at 14:31 UTC | |
by danielv (Initiate) on Aug 03, 2011 at 15:15 UTC | |
by moritz (Cardinal) on Aug 03, 2011 at 17:04 UTC |
Back to
Seekers of Perl Wisdom