Changeset a880b1b0ec03330f62891bea086ad4f4aebeec8a

Show
Ignore:
Timestamp:
06/08/09 18:32:28 (9 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1244485948 +0000
git-parent:

[b301ee2e91d95abca805621d0cd0543f7fc7a8ca]

git-author:
Mark Harrison <mark@omniti.com> 1244485948 +0000
Message:

keep the alarm signal handler inside the eval - it uses die

git-svn-id: https://labs.omniti.com/resmon/trunk@197 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • resmon

    rb301ee2 ra880b1b  
    133133      # Otherwise, run the check 
    134134      if (!$check_rv) { 
    135         local $SIG{ALRM} = sub { die "alarm\n" }; 
    136135        my $timeout = $monobj->{'check_timeout'} || $config->{'timeout'}; 
    137136        alarm($timeout); 
    138137        eval { 
     138          local $SIG{ALRM} = sub { die "alarm\n" }; 
    139139          if($coderef) { 
    140140            ($check_rv, $check_mess) = $coderef->($monobj);