mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
cli_set_process_title() available in PHP 5.5 to set proc title. This is preferred over the PECL function setproctitle().
This commit is contained in:
parent
468f1ce78a
commit
62dfa93458
1 changed files with 4 additions and 1 deletions
|
@ -324,7 +324,10 @@ class Resque_Worker
|
|||
*/
|
||||
private function updateProcLine($status)
|
||||
{
|
||||
if(function_exists('setproctitle')) {
|
||||
if(function_exists('cli_set_process_title')) {
|
||||
cli_set_process_title('resque-' . Resque::VERSION . ': ' . $status);
|
||||
}
|
||||
else if(function_exists('setproctitle')) {
|
||||
setproctitle('resque-' . Resque::VERSION . ': ' . $status);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue