Skip to content

Commit

Permalink
If Wheel::ReadLine must die because it cannot open a private copy of …
Browse files Browse the repository at this point in the history
…STDIN or STDOUT, at least have it explain WHY the open failed!
  • Loading branch information
rcaputo committed Aug 9, 2006
1 parent 4154bf1 commit d8752f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/POE/Wheel/ReadLine.pm
Expand Up @@ -28,10 +28,10 @@ my ($trk_rows, $trk_cols);

# Private STDIN and STDOUT.
my $stdin = gensym();
open($stdin, "<&0") or die "Can't open private STDIN";
open($stdin, "<&0") or die "Can't open private STDIN: $!";

my $stdout = gensym;
open($stdout, ">&1") or die "Can't open private STDOUT";
open($stdout, ">&1") or die "Can't open private STDOUT: $!";

# Offsets into $self.
sub SELF_INPUT () { 0 }
Expand Down

0 comments on commit d8752f9

Please sign in to comment.