diff options
author | unknown <kent@mysql.com> | 2005-08-16 19:49:43 +0200 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-08-16 19:49:43 +0200 |
commit | 996eb5df5d7c22c3196c943c292230aadd74fe18 (patch) | |
tree | 83484ab62c9cadb3d1993b4141347c0b9b0b4027 /mysql-test/lib/mtr_process.pl | |
parent | af13588c0a4a05306affa8b16a6617e08cb90775 (diff) | |
download | mariadb-git-996eb5df5d7c22c3196c943c292230aadd74fe18.tar.gz |
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
Diffstat (limited to 'mysql-test/lib/mtr_process.pl')
-rw-r--r-- | mysql-test/lib/mtr_process.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_process.pl b/mysql-test/lib/mtr_process.pl index 1eb4f6b7c58..e4cdaff1e77 100644 --- a/mysql-test/lib/mtr_process.pl +++ b/mysql-test/lib/mtr_process.pl @@ -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 |