mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 05:50:54 +01:00
In "phutil_passthru()", "resolve()" the future rather than calling "execute()" directly
Summary: See PHI1862. This code calls "execute()" on the future directly, but that skips some steps -- notably, ServiceProfiler hooks. Call "resolve()", which has the same effect but includes desirable/expected side effects. Test Plan: Changed a workflow to run "phutil_passthru('ls')", ran it with "--trace". Before: no execution in trace; after: execution in trace. Differential Revision: https://secure.phabricator.com/D21470
This commit is contained in:
parent
563dc2a993
commit
a716c4e55f
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function exec_manual($cmd /* , ... */) {
|
|||
*/
|
||||
function phutil_passthru($cmd /* , ... */) {
|
||||
$args = func_get_args();
|
||||
return newv('PhutilExecPassthru', $args)->execute();
|
||||
return newv('PhutilExecPassthru', $args)->resolve();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue