More crawl_daemon tweaking, a=chris

Chris Pollett [2013-04-07 06:Apr:th]
More crawl_daemon tweaking, a=chris
Filename
lib/crawl_daemon.php
diff --git a/lib/crawl_daemon.php b/lib/crawl_daemon.php
index 76d50118b..1014ab495 100644
--- a/lib/crawl_daemon.php
+++ b/lib/crawl_daemon.php
@@ -217,8 +217,10 @@ class CrawlDaemon implements CrawlConstants
             }
         }
         $php = "php";
-        if(isset($_SERVER['_']) &&
-            stristr($_SERVER['_'], 'hhvm')) {
+        if((isset($_SERVER['_']) &&
+            stristr($_SERVER['_'], 'hhvm')) ||
+           (isset($_SERVER['SERVER_SOFTWARE']) &&
+            $_SERVER['SERVER_SOFTWARE'] == "HPHP")) {
             $php = 'hhvm -f';
         }
         if(strstr(PHP_OS, "WIN")) {
ViewGit