Changeset 9c26e336e64dadcca9eb4edb586d8ab43c6754e2

Show
Ignore:
Timestamp:
03/29/07 17:17:55 (8 years ago)
Author:
Eric Sproul <esproul@omniti.com>
git-committer:
Eric Sproul <esproul@omniti.com> 1175188675 +0000
git-parent:

[9e27991e4a6a9ca92878a7ca39b69d0802d6d734]

git-author:
Eric Sproul <esproul@omniti.com> 1175188675 +0000
Message:

Fix status file handling per Theo

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Status.pm

    r5c7fb41 r9c26e33  
    1212 
    1313my $SEGSIZE = 1024*256; 
    14 my $statusfile; 
    1514sub new { 
    1615  my $class = shift; 
    1716  my $file = shift; 
    18   return $statusfile if($statusfile); 
    1917  return bless { 
    2018    file => $file 
     
    229227  die "open $self->{file}.swap failed: $!\n" unless($self->{handle}); 
    230228  $self->{swap_on_close} = 1; # move this to a non .swap version on close 
    231   chmod 0644, "$statusfile.swap"; 
     229  chmod 0644, "$self->{file}.swap"; 
    232230 
    233231  unless($self->{shared_state}) {