function _background_process_restart in Background Process 6
Same name and namespace in other branches
- 8 background_process.module \_background_process_restart()
- 7 background_process.module \_background_process_restart()
Shutdown handler for restarting background process.
Parameters
$process: Background process object
$args: Array of arguments for callback
1 string reference to '_background_process_restart'
- background_process_keepalive in ./
background_process.module - Keep the current background process alive (meaning restart it when it exits)
File
- ./
background_process.module, line 1485
Code
function _background_process_restart($process, $args = array()) {
$args = empty($args) ? $process->args : $args;
$new = BackgroundProcess::load($process);
$result = $new
->start($process->callback, $args);
}