diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2008-10-02 16:29:41 +0200 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2008-10-02 16:29:41 +0200 |
commit | 42e48bc46dff0c82f2a345760b9d945819408a72 (patch) | |
tree | 1223823c003f146138612301232b88fd23eea6cb /mysql-test | |
parent | 7e60f71001595df62b92a089869dd67fcc15a1ee (diff) | |
download | mariadb-git-42e48bc46dff0c82f2a345760b9d945819408a72.tar.gz |
Bug #38629
mysql-test-run.pl --start-and-exit starts but does not exit
Instead, it hangs with ActiveState perl. The error is
believed to be a bug in ActiveState implementation.
Workaround is using POSIX::_exit, as described here
http://www.perlmonks.org/?node_id=334610
Thanks to Philip Stoev for the idea of the patch.
Diffstat (limited to 'mysql-test')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 7b9206f0dfd..268dd3fbd16 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3505,7 +3505,16 @@ sub run_testcase ($) { { mtr_timer_stop_all($glob_timers); mtr_report("\nServers started, exiting"); - exit(0); + if ($glob_win32_perl)
+ { + #ActiveState perl hangs when using normal exit, use POSIX::_exit instead + use POSIX qw[ _exit ]; + POSIX::_exit(0); + } + else + { + exit(0); + } } { |