function _background_process_restart in Background Process 8
Same name and namespace in other branches
- 6 background_process.module \_background_process_restart()
- 7 background_process.module \_background_process_restart()
Shutdown handler for restarting background process.
1 string reference to '_background_process_restart'
- background_process_keepalive in ./
background_process.module - Implements to Keep process alive.
File
- ./
background_process.module, line 1387 - This module implements a framework for calling funtions in the background.
Code
function _background_process_restart($process, $args = []) {
$args = empty($args) ? $process->args : $args;
$new = BackgroundProcess::load($process);
$result = $new
->start($process->callback, $args);
return $result;
}