From: Date: October 2 2008 4:29pm Subject: bzr commit into mysql-5.0-bugteam branch (vvaintroub:2694) Bug#38629 List-Archive: http://lists.mysql.com/commits/55095 X-Bug: 38629 Message-Id: <200810021429.m92ETs2J013194@mail.mysql.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit #At file:///G:/bzr/mysql-5.0-bugteam/ 2694 Vladislav Vaintroub 2008-10-02 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. modified: mysql-test/mysql-test-run.pl === modified file 'mysql-test/mysql-test-run.pl' --- a/mysql-test/mysql-test-run.pl 2008-05-25 13:13:30 +0000 +++ b/mysql-test/mysql-test-run.pl 2008-10-02 14:29:41 +0000 @@ -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); + } } {