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
This commit is contained in:
commit
495fd5cfd3
@ -142,6 +142,7 @@ sub spawn_impl ($$$$$$$) {
|
|||||||
|
|
||||||
if ( $pid )
|
if ( $pid )
|
||||||
{
|
{
|
||||||
|
select(STDOUT) if $::glob_win32_perl;
|
||||||
return spawn_parent_impl($pid,$mode,$path);
|
return spawn_parent_impl($pid,$mode,$path);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -163,9 +164,6 @@ sub spawn_impl ($$$$$$$) {
|
|||||||
{
|
{
|
||||||
# Don't redirect stdout on ActiveState perl since this is
|
# Don't redirect stdout on ActiveState perl since this is
|
||||||
# just another thread in the same process.
|
# 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) )
|
elsif ( ! open(STDOUT,$log_file_open_mode,$output) )
|
||||||
{
|
{
|
||||||
@ -175,7 +173,7 @@ sub spawn_impl ($$$$$$$) {
|
|||||||
|
|
||||||
if ( $error )
|
if ( $error )
|
||||||
{
|
{
|
||||||
if ( $output eq $error )
|
if ( !$::glob_win32_perl and $output eq $error )
|
||||||
{
|
{
|
||||||
if ( ! open(STDERR,">&STDOUT") )
|
if ( ! open(STDERR,">&STDOUT") )
|
||||||
{
|
{
|
||||||
@ -184,15 +182,7 @@ sub spawn_impl ($$$$$$$) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( $::glob_win32_perl )
|
if ( ! open(STDERR,$log_file_open_mode,$error) )
|
||||||
{
|
|
||||||
# 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) )
|
|
||||||
{
|
{
|
||||||
mtr_child_error("can't redirect STDERR to \"$error\": $!");
|
mtr_child_error("can't redirect STDERR to \"$error\": $!");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user