Debug hack for ReadKeyMini::cooked().

This commit is contained in:
Daniel Nichter
2012-08-15 10:31:18 -06:00
parent 92a36715c4
commit 4e4a28bff6

View File

@@ -100,12 +100,14 @@ my %modes = (
$term->setcc( VTIME, 1 );
$term->setattr( $fd_stdin, TCSANOW );
}
use Data::Dumper;
sub cooked {
$term->setlflag($oterm);
$term->setcc( VTIME, 0 );
$term->setattr( $fd_stdin, TCSANOW );
unless ( $PerconaTest::DONT_RESTORE_STDIN ) {
warn Dumper($fd_stdin);
warn Dumper($flags);
fcntl(STDIN, F_SETFL, $flags)
or warn "can't fcntl F_SETFL: $!";
}