diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index a6c3985..7499039 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -324,8 +324,12 @@ class Resque_Worker */ private function updateProcLine($status) { - if(function_exists('setproctitle')) { - setproctitle('resque-' . Resque::VERSION . ': ' . $status); + $processTitle = 'resque-' . Resque::VERSION . ': ' . $status; + if(function_exists('cli_set_process_title')) { + cli_set_process_title($processTitle); + } + else if(function_exists('setproctitle')) { + setproctitle($processTitle); } }