Commit 42e48bc4 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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.
parent 7e60f710
...@@ -3505,8 +3505,17 @@ sub run_testcase ($) { ...@@ -3505,8 +3505,17 @@ sub run_testcase ($) {
{ {
mtr_timer_stop_all($glob_timers); mtr_timer_stop_all($glob_timers);
mtr_report("\nServers started, exiting"); mtr_report("\nServers started, exiting");
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); exit(0);
} }
}
{ {
do_before_run_mysqltest($tinfo); do_before_run_mysqltest($tinfo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment