ReadKeyMini: Restore STDIN flags in cooked()

This will probably resolve bug #946707: pt-sift loses STDIN after pt-diskstats
This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-06-05 12:16:49 -03:00
parent 4906b52d3b
commit 6b93d51e43
3 changed files with 23 additions and 2 deletions

View File

@@ -92,6 +92,8 @@ sub test_diskstats_file {
no_diff(
sub {
tie local *STDIN, TestInteractive => @commands;
local $PerconaTest::DONT_RESTORE_STDIN =
$PerconaTest::DONT_RESTORE_STDIN = 1;
pt_diskstats::main(
@options,
'--group-by', $groupby,