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