You are here

function hosting_queued_db_close_all in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 queued/hosting_queued.drush.inc \hosting_queued_db_close_all()

Close all database file descriptors, as exec() doesn't close them.

1 call to hosting_queued_db_close_all()
hosting_queued_restart in queued/hosting_queued.drush.inc
Restart the dispatcher to work around memory leaks

File

queued/hosting_queued.drush.inc, line 288
Dispatcher daemon

Code

function hosting_queued_db_close_all() {
  global $databases;
  foreach (array_keys($databases) as $target) {
    foreach (array_keys($databases[$target]) as $key) {
      Database::closeConnection($target, $key);
    }
  }
}