You are here

function _background_process_cleanup_locks in Background Process 6

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

Shutdown handler for removing locks

1 string reference to '_background_process_cleanup_locks'
_background_process_ensure_cleanup in ./background_process.module
Ensure lock is removed at end of request

File

./background_process.module, line 1371

Code

function _background_process_cleanup_locks() {
  $handles =& background_process_static('background_process_handles_locked', NULL);
  if (!empty($handles)) {
    foreach ($handles as $handle) {
      background_process_remove_process($handle);
    }
  }
}