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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0d177b2d
Commit
0d177b2d
authored
Jul 26, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem with detecting wheter im processes has shutdown cleanly
parent
563a092f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
24 deletions
+17
-24
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+17
-24
No files found.
mysql-test/mysql-test-run.pl
View file @
0d177b2d
...
...
@@ -3485,36 +3485,29 @@ sub im_stop($) {
}
}
# Check that all processes died.
# Check if all processes shutdown cleanly
my
$clean_shutdown
=
1
;
# Assum they did
my
$clean_shutdown
=
0
;
while
(
1
)
if
(
kill
(
0
,
$instance_manager
->
{'
pid
'}))
{
if
(
kill
(
0
,
$instance_manager
->
{'
pid
'}))
{
mtr_warning
("
IM-main is still alive.
");
last
;
}
mtr_warning
("
IM-main is still alive.
");
$clean_shutdown
=
0
;
}
if
(
defined
$instance_manager
->
{'
angel_pid
'}
&&
kill
(
0
,
$instance_manager
->
{'
angel_pid
'}))
{
mtr_warning
("
IM-angel is still alive.
");
last
;
}
if
(
defined
$instance_manager
->
{'
angel_pid
'}
&&
kill
(
0
,
$instance_manager
->
{'
angel_pid
'}))
{
mtr_warning
("
IM-angel is still alive.
");
$clean_shutdown
=
0
;
}
foreach
my
$pid
(
@mysqld_pids
)
foreach
my
$pid
(
@mysqld_pids
)
{
if
(
kill
(
0
,
$pid
))
{
if
(
kill
(
0
,
$pid
))
{
mtr_warning
("
Guarded mysqld (
$pid
) is still alive.
");
last
;
}
mtr_warning
("
Guarded mysqld (
$pid
) is still alive.
");
$clean_shutdown
=
0
;
}
$clean_shutdown
=
1
;
last
;
}
# Kill leftovers (the order is important).
...
...
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