diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index a6c3985..1c9219a 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -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); } }