From e4cfc541c98c286e1e6934ef98a81bfdad5a2502 Mon Sep 17 00:00:00 2001 From: Luis Hdez Date: Wed, 30 Mar 2016 03:14:15 +0200 Subject: [PATCH 1/2] Fix CS whitespaces --- lib/Resque/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 0ba86d9..6c72a36 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -63,7 +63,7 @@ class Resque_Worker public function __construct($queues) { $this->logger = new Resque_Log(); - + if(!is_array($queues)) { $queues = array($queues); } From 70102f1b89f3628f8aff4b73cb58ebf6d2107d92 Mon Sep 17 00:00:00 2001 From: Luis Hdez Date: Wed, 30 Mar 2016 03:15:01 +0200 Subject: [PATCH 2/2] Add control for OS X and cli_set_process_title --- lib/Resque/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 6c72a36..973d7fd 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -327,7 +327,7 @@ class Resque_Worker private function updateProcLine($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); } else if(function_exists('setproctitle')) {