mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Add control for OS X and cli_set_process_title
This commit is contained in:
parent
e4cfc541c9
commit
70102f1b89
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ class Resque_Worker
|
||||||
private function updateProcLine($status)
|
private function updateProcLine($status)
|
||||||
{
|
{
|
||||||
$processTitle = 'resque-' . Resque::VERSION . ': ' . $status;
|
$processTitle = 'resque-' . Resque::VERSION . ': ' . $status;
|
||||||
if(function_exists('cli_set_process_title')) {
|
if(function_exists('cli_set_process_title') && PHP_OS !== 'Darwin') {
|
||||||
cli_set_process_title($processTitle);
|
cli_set_process_title($processTitle);
|
||||||
}
|
}
|
||||||
else if(function_exists('setproctitle')) {
|
else if(function_exists('setproctitle')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue