mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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.
This commit is contained in:
@ -3505,7 +3505,16 @@ 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");
|
||||||
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user