diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index cd1e8b42155a2..a55bac5571835 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -579,6 +579,18 @@ public function stop($timeout=10) return $this->exitcode; } + /** + * Send signal to the process. + * + * @param int $signal Signal to send to process. + * + * @return Boolean The terminations status of the process. + */ + public function signal($signal) + { + return proc_terminate($this->process, $signal); + } + public function addOutput($line) { $this->stdout .= $line;