1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Bug #44511 MTR2: add an option not to kill other servers when one from the group exits

MTR would die as soon as one server terminates
Implemented --wait-all option and associated subroutine
This commit is contained in:
Bjorn Munch
2009-04-29 16:13:38 +02:00
parent ca0e746d3b
commit 261066e251
2 changed files with 41 additions and 6 deletions

View File

@@ -536,6 +536,18 @@ sub wait_any {
return $proc;
}
#
# Wait for all processes to exit
#
sub wait_all {
while(keys %running)
{
wait_any();
}
}
#
# Check if any process has exited, but don't wait.
#