joomla/joomla-platform — pull request #1189 by robschley (2012-05-05 21:10:08+00:00)
Title: Added JDatabaseDriver::disconnect() to support disconnecting from the database cleanly.

This is useful when building applications with JApplicationDaemon because the database resource that gets copied after forking is shared between parent and child and if either of the processes close the connect, it is closed for both. With this, you can use the onFork event to disconnect and reconnect the database to get a new, unshared resource.