joomla/joomla-platform — pull request #718 by robschley (2012-01-06 22:52:14+00:00)
Title: JDaemon rename and cleanup

Renamed JDaemon to JApplicationDaemon and moved to application directory.
Reworked JApplicationDaemon::fork() to be more generic and added detach() method to detach from the console.
Added JApplicationDeamon::postFork() to trigger an onFork event so objects can replace shared resources (like database connections) that are problematic when forking in PHP.