Commit b63869bd authored by unknown's avatar unknown
Browse files

mtr_process.pl:

  Make sure mtr_kill_processes() is called with an array ref
  Corrected error string for STDERR redirect


mysql-test/lib/mtr_process.pl:
  Make sure mtr_kill_processes() is called with an array ref
parent 0caa2a61
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ sub spawn_impl ($$$$$$$$) {
        {
          if ( ! open(STDERR,$log_file_open_mode,$error) )
          {
            mtr_error("can't redirect STDERR to \"$output\": $!");
            mtr_error("can't redirect STDERR to \"$error\": $!");
          }
        }
      }
@@ -560,8 +560,8 @@ sub mtr_stop_mysqld_servers ($) {

  start_reap_all();                     # Avoid zombies

 SIGNAL:
  mtr_kill_processes(\keys (%mysqld_pids));
  my @mysqld_pids= keys %mysqld_pids;
  mtr_kill_processes(\@mysqld_pids);

  stop_reap_all();                      # Get into control again