Resque_Worker::updateProcLine PHP Method

updateProcLine() private method

On supported systems (with the PECL proctitle module installed), update the name of the currently running process to indicate the current state of a worker.
private updateProcLine ( string $status )
$status string The updated process title.
    private function updateProcLine($status)
    {
        $processTitle = 'resque-' . Resque::VERSION . ': ' . $status;
        if (function_exists('cli_set_process_title') && PHP_OS !== 'Darwin') {
            cli_set_process_title($processTitle);
        } else {
            if (function_exists('setproctitle')) {
                setproctitle($processTitle);
            }
        }
    }