mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 18:34:59 +00:00
More debug hacks.
This commit is contained in:
@@ -108,18 +108,7 @@ use Data::Dumper;
|
||||
$term->setcc( VTIME, 0 );
|
||||
$term->setattr( $fd_stdin, TCSANOW );
|
||||
unless ( $PerconaTest::DONT_RESTORE_STDIN ) {
|
||||
no strict;
|
||||
if ( -t STDIN ) { warn "STD is tty\n"; }
|
||||
Dump(STDIN);
|
||||
Dump(F_SETFL);
|
||||
Dump($flags);
|
||||
warn "STDIN=",Dumper(STDIN);
|
||||
warn "SETFL=",Dumper(F_SETFL);
|
||||
warn "*STDIN=", Dumper(*STDIN);
|
||||
warn "fd_stdin=", Dumper($fd_stdin);
|
||||
warn "flags=", Dumper($flags);
|
||||
warn "tell=",tell(STDIN), "\n";
|
||||
warn `ls -l /proc/$PID/*`, "\n";
|
||||
fcntl(STDIN, F_SETFL, int($flags))
|
||||
or warn "can't fcntl F_SETFL: $!";
|
||||
}
|
||||
|
@@ -9,13 +9,13 @@ BEGIN {
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More tests => 22;
|
||||
use Test::More;
|
||||
use Time::HiRes qw(sleep);
|
||||
use File::Temp qw( tempfile );
|
||||
use Daemon;
|
||||
use OptionParser;
|
||||
use PerconaTest;
|
||||
|
||||
plan skip_all => "Hm";
|
||||
use constant PTDEVDEBUG => $ENV{PTDEVDEBUG} || 0;
|
||||
|
||||
my $o = new OptionParser(file => "$trunk/t/lib/samples/daemonizes.pl");
|
||||
@@ -263,4 +263,5 @@ ok(
|
||||
# Done.
|
||||
# #############################################################################
|
||||
rm_tmp_files();
|
||||
done_testing;
|
||||
exit;
|
||||
|
Reference in New Issue
Block a user