Skip to content

Commit

Permalink
https://rt.cpan.org/Ticket/Display.html?id=65526
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Feb 7, 2011
1 parent b1dfced commit 5a67e68
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.2020: Mon Feb 07 2011
- Andrzej Adam Filip requested a CLOSE method for ::PipeSocket

1.2019: Wed Dec 01 2010
- _process_flags() was a little too aggressive about what's a
valid flag and what isn't. Really, it needs to be up to the
Expand Down
2 changes: 1 addition & 1 deletion Simple.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use IO::Socket;
use IO::Select;
use Net::IMAP::Simple::PipeSocket;

our $VERSION = "1.2019";
our $VERSION = "1.2020";

BEGIN {
# I'd really rather the pause/cpan indexers miss this "package"
Expand Down
11 changes: 11 additions & 0 deletions lib/Net/IMAP/Simple/PipeSocket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ sub _waitpid {
return;
}

sub CLOSE {
my $this = shift;
my $rdr = $this->{rdr};
my $wtr = $this->{wtr};

close $rdr or warn "PIPE ERR (close-r): $!";
close $wtr or warn "PIPE ERR (close-w): $!";

return;
}

1;

__END__
Expand Down

0 comments on commit 5a67e68

Please sign in to comment.