You are here

function background_process_restart in Background Process 7.2

Same name and namespace in other branches
  1. 8 background_process.module \background_process_restart()
  2. 6 background_process.module \background_process_restart()
  3. 7 background_process.module \background_process_restart()

Restart the current background process

Return value

Exception on fail, otherwise exit

File

./background_process.module, line 671

Code

function background_process_restart() {
  $process = BackgroundProcess::currentProcess();
  $process
    ->restart();
  exit;
}