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->setcc( VTIME, 0 );
|
||||||
$term->setattr( $fd_stdin, TCSANOW );
|
$term->setattr( $fd_stdin, TCSANOW );
|
||||||
unless ( $PerconaTest::DONT_RESTORE_STDIN ) {
|
unless ( $PerconaTest::DONT_RESTORE_STDIN ) {
|
||||||
no strict;
|
|
||||||
if ( -t STDIN ) { warn "STD is tty\n"; }
|
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))
|
fcntl(STDIN, F_SETFL, int($flags))
|
||||||
or warn "can't fcntl F_SETFL: $!";
|
or warn "can't fcntl F_SETFL: $!";
|
||||||
}
|
}
|
||||||
|
@@ -9,13 +9,13 @@ BEGIN {
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings FATAL => 'all';
|
use warnings FATAL => 'all';
|
||||||
use English qw(-no_match_vars);
|
use English qw(-no_match_vars);
|
||||||
use Test::More tests => 22;
|
use Test::More;
|
||||||
use Time::HiRes qw(sleep);
|
use Time::HiRes qw(sleep);
|
||||||
use File::Temp qw( tempfile );
|
use File::Temp qw( tempfile );
|
||||||
use Daemon;
|
use Daemon;
|
||||||
use OptionParser;
|
use OptionParser;
|
||||||
use PerconaTest;
|
use PerconaTest;
|
||||||
|
plan skip_all => "Hm";
|
||||||
use constant PTDEVDEBUG => $ENV{PTDEVDEBUG} || 0;
|
use constant PTDEVDEBUG => $ENV{PTDEVDEBUG} || 0;
|
||||||
|
|
||||||
my $o = new OptionParser(file => "$trunk/t/lib/samples/daemonizes.pl");
|
my $o = new OptionParser(file => "$trunk/t/lib/samples/daemonizes.pl");
|
||||||
@@ -263,4 +263,5 @@ ok(
|
|||||||
# Done.
|
# Done.
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
rm_tmp_files();
|
rm_tmp_files();
|
||||||
|
done_testing;
|
||||||
exit;
|
exit;
|
||||||
|
Reference in New Issue
Block a user