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
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($) {
...
@@ -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
;
if
(
kill
(
0
,
$instance_manager
->
{'
pid
'}))
while
(
1
)
{
{
if
(
kill
(
0
,
$instance_manager
->
{'
pid
'}))
mtr_warning
("
IM-main is still alive.
");
{
$clean_shutdown
=
0
;
mtr_warning
("
IM-main is still alive.
");
}
last
;
}
if
(
defined
$instance_manager
->
{'
angel_pid
'}
&&
if
(
defined
$instance_manager
->
{'
angel_pid
'}
&&
kill
(
0
,
$instance_manager
->
{'
angel_pid
'}))
kill
(
0
,
$instance_manager
->
{'
angel_pid
'}))
{
{
mtr_warning
("
IM-angel is still alive.
");
mtr_warning
("
IM-angel is still alive.
");
last
;
$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.
");
{
$clean_shutdown
=
0
;
mtr_warning
("
Guarded mysqld (
$pid
) is still alive.
");
last
;
}
}
}
$clean_shutdown
=
1
;
last
;
}
}
# Kill leftovers (the order is important).
# 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