Changeset 5c7fb414bc39199cd1989b3f7adba3a0ef1c8f04

Show
Ignore:
Timestamp:
03/26/07 20:44:47 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1174941887 +0000
git-parent:

[37857c4c91096e325fa1d70b9d1ea78ab5c7f15d]

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

don't close stdout

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

Files:

Legend:

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

    rae5283c r5c7fb41  
    222222  return 1 if($self->{handle});  # Alread open 
    223223  if($self->{file} eq '-' || !defined($self->{file})) { 
     224    $self->{handle_is_stdout} = 1; 
    224225    $self->{handle} = IO::File->new_from_fd(fileno(STDOUT), "w"); 
    225226    return 1; 
     
    251252sub close { 
    252253  my $self = shift; 
     254  return if($self->{handle_is_stdout}); 
    253255  $self->{handle}->close() if($self->{handle}); 
    254256  $self->{handle} = undef;