Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6f027d9d
Commit
6f027d9d
authored
Feb 25, 2014
by
sayantan dutta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #17926328 - MTR SHOULD NOT WAIT FOR CHILDREN WHEN ABORTING TEST RUN ON WINDOWS
parent
075a2fb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+12
-10
No files found.
mysql-test/mysql-test-run.pl
View file @
6f027d9d
#!/usr/bin/perl
#!/usr/bin/perl
# -*- cperl -*-
# -*- cperl -*-
# Copyright (c) 2004, 201
3
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2004, 201
4
, Oracle and/or its affiliates. All rights reserved.
#
#
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
@@ -474,15 +474,17 @@ sub main {
...
@@ -474,15 +474,17 @@ sub main {
# Send Ctrl-C to any children still running
# Send Ctrl-C to any children still running
kill
("
INT
",
keys
(
%
children
));
kill
("
INT
",
keys
(
%
children
));
# Wait for childs to exit
if
(
!
IS_WINDOWS
)
{
foreach
my
$pid
(
keys
%
children
)
# Wait for children to exit
{
foreach
my
$pid
(
keys
%
children
)
my
$ret_pid
=
waitpid
(
$pid
,
0
);
{
if
(
$ret_pid
!=
$pid
){
my
$ret_pid
=
waitpid
(
$pid
,
0
);
mtr_report
("
Unknown process
$ret_pid
exited
");
if
(
$ret_pid
!=
$pid
){
}
mtr_report
("
Unknown process
$ret_pid
exited
");
else
{
}
delete
$children
{
$ret_pid
};
else
{
delete
$children
{
$ret_pid
};
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment