You are here

function background_process_keepalive in Background Process 7.2

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

Keep the current background process alive (meaning restart it when it exits)

File

./background_process.module, line 681

Code

function background_process_keepalive() {
  $process = BackgroundProcess::currentProcess();
  $process
    ->keepAlive();
}