2004-03-09
2004-03-09 16:04:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
c7ca24a343da4d27deb71f5e230b898e5286d10d
(11 lines)
(+10/-1)
[
Show
| Annotate
]
Branch: 5.2
really_low_shutdown() now attempts to also shutdown mysqld.
Attept at fixing [bug 3566 (#3566)].
Rev: server/base_server/roxen.pike:1.864
6:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.
// ABS and suicide systems contributed freely by Francesco Chemolli
- constant cvs_version="$Id: roxen.pike,v 1.863 2004/02/16 13:41:46 jonasw Exp $";
+ constant cvs_version="$Id: roxen.pike,v 1.864 2004/03/09 16:04:31 grubba Exp $";
//! @appears roxen
//!
433: Inside #if defined(THREADS)
#ifdef THREADS
catch (stop_handler_threads());
#endif /* THREADS */
+ if (!exit_code) {
+ // We're shutting down; Attempt to take mysqld with us.
+ catch { report_notice("Shutting down MySQL.\n"); };
+ catch {
+ Sql.sql db = connect_to_my_mysql(0, "mysql");
+ db->shutdown();
+ };
+ }
destruct (cache);
catch {
#if 0