Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
ca200b83
Commit
ca200b83
authored
Jun 01, 2001
by
justdave%syndicomm.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 73249: perl warnings under 5.6.0.
Patch by Chris Yeh <Chris.Yeh@nokia.com> r= justdave@syndicomm.com
parent
a61ceda5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
mysqld-watcher.pl
contrib/mysqld-watcher.pl
+13
-13
No files found.
contrib/mysqld-watcher.pl
View file @
ca200b83
...
...
@@ -68,19 +68,6 @@ while ( <STDIN> ) {
}
}
# if we found anything, kill the database thread and send mail about it
#
if
(
$LONGEST
[
6
]
!=
0
)
{
system
(
"/usr/bonsaitools/bin/mysqladmin"
,
"kill"
,
$LONGEST
[
1
]);
# fire off an email telling the maintainer that we had to kill a thread
#
sendEmail
(
$mail_from
,
Param
(
"maintainer"
),
"long running MySQL thread killed"
,
join
(
" "
,
@LONGEST
)
.
"\n"
);
}
# send an email message
#
# should perhaps be moved to somewhere more global for use in bugzilla as a
...
...
@@ -100,3 +87,16 @@ sub sendEmail($$$$) {
close
(
MTA
);
}
# if we found anything, kill the database thread and send mail about it
#
if
(
$LONGEST
[
6
]
!=
0
)
{
system
(
"/usr/bonsaitools/bin/mysqladmin"
,
"kill"
,
$LONGEST
[
1
]);
# fire off an email telling the maintainer that we had to kill a thread
#
sendEmail
(
$mail_from
,
Param
(
"maintainer"
),
"long running MySQL thread killed"
,
join
(
" "
,
@LONGEST
)
.
"\n"
);
}
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