Fix for bug 73249: perl warnings under 5.6.0.

Patch by Chris Yeh <Chris.Yeh@nokia.com>
r= justdave@syndicomm.com
This commit is contained in:
justdave%syndicomm.com 2001-06-01 08:34:45 +00:00
Родитель 86cdf4ff92
Коммит 53e52cbe8b
1 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -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 # send an email message
# #
# should perhaps be moved to somewhere more global for use in bugzilla as a # should perhaps be moved to somewhere more global for use in bugzilla as a
@ -100,3 +87,16 @@ sub sendEmail($$$$) {
close(MTA); 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");
}