Changeset View
Changeset View
Standalone View
Standalone View
src/future/exec/execx.php
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| * Wrapper for @{class:PhutilExecPassthru}. | * Wrapper for @{class:PhutilExecPassthru}. | ||||
| * | * | ||||
| * @param string sprintf()-style command pattern to execute. | * @param string sprintf()-style command pattern to execute. | ||||
| * @param ... Arguments to sprintf pattern. | * @param ... Arguments to sprintf pattern. | ||||
| * @return int Return code. | * @return int Return code. | ||||
| */ | */ | ||||
| function phutil_passthru($cmd /* , ... */) { | function phutil_passthru($cmd /* , ... */) { | ||||
| $args = func_get_args(); | $args = func_get_args(); | ||||
| return newv('PhutilExecPassthru', $args)->execute(); | return newv('PhutilExecPassthru', $args)->resolve(); | ||||
| } | } | ||||
| /** | /** | ||||
| * Return a human-readable signal name (like "SIGINT" or "SIGKILL") for a given | * Return a human-readable signal name (like "SIGINT" or "SIGKILL") for a given | ||||
| * signal number. | * signal number. | ||||
| * | * | ||||
| * @param int Signal number. | * @param int Signal number. | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||