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
91eebaae
Commit
91eebaae
authored
Apr 20, 2011
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #12379923 60907: MYSQL-TEST/LIB/MY/SAFEPROCESS/SAFE_PROCESS.PL USES HARDCODED SIGNAL NUMBE
Replaced the hardcoded 9 with 'KILL'
parent
060df92b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mysql-test/lib/My/SafeProcess/safe_process.pl
mysql-test/lib/My/SafeProcess/safe_process.pl
+2
-2
No files found.
mysql-test/lib/My/SafeProcess/safe_process.pl
View file @
91eebaae
...
@@ -94,7 +94,7 @@ eval {
...
@@ -94,7 +94,7 @@ eval {
local
$SIG
{
INT
}
=
\&
handle_signal
;
local
$SIG
{
INT
}
=
\&
handle_signal
;
local
$SIG
{
CHLD
}
=
sub
{
local
$SIG
{
CHLD
}
=
sub
{
message
("
Got signal
@_
");
message
("
Got signal
@_
");
kill
(
9
,
-
$child_pid
);
kill
(
'
KILL
'
,
-
$child_pid
);
my
$ret
=
waitpid
(
$child_pid
,
0
);
my
$ret
=
waitpid
(
$child_pid
,
0
);
if
(
$?
&
127
){
if
(
$?
&
127
){
exit
(
65
);
# Killed by signal
exit
(
65
);
# Killed by signal
...
@@ -134,7 +134,7 @@ if ( $@ ) {
...
@@ -134,7 +134,7 @@ if ( $@ ) {
# Use negative pid in order to kill the whole
# Use negative pid in order to kill the whole
# process group
# process group
#
#
my
$ret
=
kill
(
9
,
-
$child_pid
);
my
$ret
=
kill
(
'
KILL
'
,
-
$child_pid
);
message
("
Killed child:
$child_pid
, ret:
$ret
");
message
("
Killed child:
$child_pid
, ret:
$ret
");
if
(
$ret
>
0
)
{
if
(
$ret
>
0
)
{
message
("
Killed child:
$child_pid
");
message
("
Killed child:
$child_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