<% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>

blib::lib::FS::Daemon

daemon_fork CODEREF[, ARGS ]

Executes CODEREF in a child process, with its own $FS::UID::dbh handle. If the number of child processes is >= $FS::Daemon::MAX_KIDS then this will block until some of the child processes are finished. ARGS will be passed to the coderef.

If the fork fails, this will throw an exception containing $!. Otherwise it returns the PID of the child, like fork() does.

daemon_wait [ MAX ]

Waits until there are at most MAX daemon_fork() child processes running, reaps the ones that are finished, and continues. MAX defaults to zero, i.e. wait for everything to finish.

daemon_reconnect

Checks whether the database connection is live, and reconnects if not.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 133:

'=item' outside of any '=over'

=over without closing =back

<% include ('/elements/footer.html' ) %>