Changeset 8346efda0e37e40bff49471d4d54cbc63a58ba53

Show
Ignore:
Timestamp:
03/22/07 22:07:37 (8 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1174601257 +0000
git-parent:

[df48341453a4e919fe316973297acc5df2099ae7]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1174601257 +0000
Message:

link won't obliterate the existing copy -- we need to unlink it first

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

Files:

Legend:

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

    r627a967 r8346efd  
    238238  $self->{handle} = undef; 
    239239  if($self->{swap_on_close}) { 
     240    unlink("$self->{file}"); 
    240241    link("$self->{file}.swap", $self->{file}); 
    241242    unlink("$self->{file}.swap");