From 70102f1b89f3628f8aff4b73cb58ebf6d2107d92 Mon Sep 17 00:00:00 2001 From: Luis Hdez Date: Wed, 30 Mar 2016 03:15:01 +0200 Subject: [PATCH] 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')) {