From dc36317ea48fb7fbfd59baf9abc1376bb351ea89 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 2 Feb 2012 16:03:36 -0800 Subject: [PATCH] Use 'ps ' to test for process existence if posix is not available Summary: posix may not be loaded on the web/cgi SAPI but we call posix functions on this pathway, which we hit on /daemon/. Fall back to exec if we don't have posix. Test Plan: Added "&& false" and verified the page executed a bunch of "ps" tests. Reviewers: Koolvin, btrahan Reviewed By: btrahan CC: aran, epriestley Maniphest Tasks: T821 Differential Revision: https://secure.phabricator.com/D1540 --- .../reference/PhabricatorDaemonReference.php | 26 ++++++++++++------- .../daemon/control/reference/__init__.php | 1 + 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/infrastructure/daemon/control/reference/PhabricatorDaemonReference.php b/src/infrastructure/daemon/control/reference/PhabricatorDaemonReference.php index fc801ccccd..9bb57ba603 100644 --- a/src/infrastructure/daemon/control/reference/PhabricatorDaemonReference.php +++ b/src/infrastructure/daemon/control/reference/PhabricatorDaemonReference.php @@ -1,7 +1,7 @@