mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-01 18:30:59 +01:00
Fix chdir() + proc_open() php 5.2 issues.
This commit is contained in:
parent
0d292abbf0
commit
ab2b83ce14
1 changed files with 6 additions and 4 deletions
|
@ -177,10 +177,7 @@ EOHELP
|
||||||
$argv[$key] = escapeshellarg($arg);
|
$argv[$key] = escapeshellarg($arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Side effect. :/ We're playing games here to keep 'ps' looking reasonable.
|
$future = new ExecFuture(
|
||||||
chdir($launch_daemon);
|
|
||||||
|
|
||||||
execx(
|
|
||||||
"./launch_daemon.php ".
|
"./launch_daemon.php ".
|
||||||
"%s ".
|
"%s ".
|
||||||
"--load-phutil-library=%s ".
|
"--load-phutil-library=%s ".
|
||||||
|
@ -192,6 +189,11 @@ EOHELP
|
||||||
phutil_get_library_root('phabricator'),
|
phutil_get_library_root('phabricator'),
|
||||||
PhabricatorEnv::getURI('/api/'),
|
PhabricatorEnv::getURI('/api/'),
|
||||||
$pid_dir);
|
$pid_dir);
|
||||||
|
|
||||||
|
// Play games to keep 'ps' looking reasonable.
|
||||||
|
$future->setCWD($launch_daemon);
|
||||||
|
|
||||||
|
$future->resolvex();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getControlDirectory($dir) {
|
protected function getControlDirectory($dir) {
|
||||||
|
|
Loading…
Reference in a new issue