CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: mod_perl:
ModPerl::Util::exit: (120000) exit was called

 



jamesa00789
New User

Jan 27, 2012, 6:07 AM

Post #1 of 2 (55391 views)
ModPerl::Util::exit: (120000) exit was called Can't Post

I'm trying to run mod_perl on Ubuntu 10.04. According to here: http://perl.apache.org/docs/2.0/api/ModPerl/Util.html#C_exit_ it is OK to use exit();

I have my own subroutine called sub Exit {} that is in a separate file. The subroutine does some clearing up stuff with a database, and then at the end it terminates the program by calling exit();

However I am getting this error:

ModPerl::Util::exit: (120000) exit was called at /home/...

Even though apparently this is perfectly OK to use this.

What's going on? I have spent over 2 days now browsing the internet trying to fix this problem and I still can't find a solution.

Thank you


Zhris
Enthusiast

Apr 5, 2012, 2:01 PM

Post #2 of 2 (52320 views)
Re: [jamesa00789] ModPerl::Util::exit: (120000) exit was called [In reply to] Can't Post

Hi,

I can't be certain but could be where you have called exit within an eval block. In this case, you could check if $@ matches the "ModPerl::Util::exit" error, then handle appropriately:


Code
eval { Exit(); }; 
if ($@)
{
if ($@ =~ m/ModPerl::Util::exit/)
{
exit;
}
else
{
die "Another error occurred: $@\n";
}
}


Chris


(This post was edited by Zhris on Jun 15, 2012, 2:41 PM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives