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
d19d4b3f
Commit
d19d4b3f
authored
Apr 23, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect against killing pid's that would "killall" or "kill self"
parent
aa043d73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mysql-test/lib/mtr_process.pl
mysql-test/lib/mtr_process.pl
+7
-0
No files found.
mysql-test/lib/mtr_process.pl
View file @
d19d4b3f
...
@@ -1086,6 +1086,13 @@ sub mtr_kill_processes ($) {
...
@@ -1086,6 +1086,13 @@ sub mtr_kill_processes ($) {
foreach
my
$pid
(
@$pids
)
foreach
my
$pid
(
@$pids
)
{
{
if
(
$pid
<=
0
)
{
mtr_warning
("
Trying to kill illegal pid:
$pid
");
next
;
}
foreach
my
$sig
(
15
,
9
)
foreach
my
$sig
(
15
,
9
)
{
{
last
if
mtr_im_kill_process
([
$pid
],
$sig
,
10
,
1
);
last
if
mtr_im_kill_process
([
$pid
],
$sig
,
10
,
1
);
...
...
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