You are here

function background_process_http_shutdown in Background Process 7.2

This is just to make sure that we close all the file handles that we've opened

1 string reference to 'background_process_http_shutdown'
background_process_http_request_initiate in ./background_process.http.inc
Initiate the http request.

File

./background_process.http.inc, line 526
This contains the HTTP functions for Background Process.

Code

function background_process_http_shutdown() {
  $fps =& drupal_static('background_process_fps', array());
  foreach ($fps as $idx => $fp) {
    if (is_resource($fp)) {
      fclose($fp);
    }
  }
}