Commit 935505c5 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Strike 2. It appears that safe_mysqld does not always do the right

thing; restart mysqld after it gets a signal other then TERM.
parent ee486a42
......@@ -197,6 +197,21 @@ sub RestartMysqld()
print "Sending a -KILL to mysqld\n";
system("$KILLALL -9 mysqld");
# But apparently, it sometimes exits anyway!
print "Sending another -0 to mysqld\n";
system("$KILLALL -0 mysqld");
if ($?) {
# Must have stopped. Restart it.
print "mysqld exited abnormally; restarting.\n";
system("$MYSQLD start");
print "\n";
# Wait for a little while, and then try another query.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment