diff options
author | unknown <msvensson@pilot.(none)> | 2007-06-27 09:22:01 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-06-27 09:22:01 +0200 |
commit | 495fd5cfd3b588130e7396d4dc79614c79d0218b (patch) | |
tree | c650d5abb9220ff14ddc8c505d07963ce8c8936d /mysql-test/lib/mtr_process.pl | |
parent | 7dafa50a774caef63dd83eb2fe7f1ac2f36ab91f (diff) | |
parent | 3ffce0c7246df9867fbaa40db2ca6107beb2b656 (diff) | |
download | mariadb-git-495fd5cfd3b588130e7396d4dc79614c79d0218b.tar.gz |
Merge pilot.(none):/data/msvensson/mysql/bug18415/my51-bug18415
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
mysql-test/lib/mtr_process.pl:
Auto merged
Diffstat (limited to 'mysql-test/lib/mtr_process.pl')
-rw-r--r-- | mysql-test/lib/mtr_process.pl | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/mysql-test/lib/mtr_process.pl b/mysql-test/lib/mtr_process.pl index 00894093e3d..7ac75829a28 100644 --- a/mysql-test/lib/mtr_process.pl +++ b/mysql-test/lib/mtr_process.pl @@ -142,6 +142,7 @@ sub spawn_impl ($$$$$$$) { if ( $pid ) { + select(STDOUT) if $::glob_win32_perl; return spawn_parent_impl($pid,$mode,$path); } else @@ -163,9 +164,6 @@ sub spawn_impl ($$$$$$$) { { # Don't redirect stdout on ActiveState perl since this is # just another thread in the same process. - # Should be fixed so that the thread that is created with fork - # executes the exe in another process and wait's for it to return. - # In the meanwhile, we get all the output from mysqld's to screen } elsif ( ! open(STDOUT,$log_file_open_mode,$output) ) { @@ -175,7 +173,7 @@ sub spawn_impl ($$$$$$$) { if ( $error ) { - if ( $output eq $error ) + if ( !$::glob_win32_perl and $output eq $error ) { if ( ! open(STDERR,">&STDOUT") ) { @@ -184,15 +182,7 @@ sub spawn_impl ($$$$$$$) { } else { - if ( $::glob_win32_perl ) - { - # Don't redirect stdout on ActiveState perl since this is - # just another thread in the same process. - # Should be fixed so that the thread that is created with fork - # executes the exe in another process and wait's for it to return. - # In the meanwhile, we get all the output from mysqld's to screen - } - elsif ( ! open(STDERR,$log_file_open_mode,$error) ) + if ( ! open(STDERR,$log_file_open_mode,$error) ) { mtr_child_error("can't redirect STDERR to \"$error\": $!"); } |