Commit 996eb5df authored by unknown's avatar unknown
Browse files

mtr_process.pl:

  Bug#12094: Let sleep_until_file_created() return the pid as intended


mysql-test/lib/mtr_process.pl:
  Bug#12094: Let sleep_until_file_created() return the pid as intended
parent af13588c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -752,6 +752,7 @@ sub mtr_ping_mysqld_server () {
#
##############################################################################

# FIXME check that the pidfile contains the expected pid!

sub sleep_until_file_created ($$$) {
  my $pidfile= shift;
@@ -762,7 +763,7 @@ sub sleep_until_file_created ($$$) {
  {
    if ( -r $pidfile )
    {
      return 1;
      return $pid;
    }

    # Check if it died after the fork() was successful