-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Description
| Q | A |
|---|---|
| Bug report? | no |
| Feature request? | yes |
| BC Break report? | no |
| RFC? | no |
| Symfony version | v3.4.3 |
As for ProcessTimedOutException, it would be great to have an exception when a signal has been sent to the sub-process.
Basically, on this line:
symfony/src/Symfony/Component/Process/Process.php
Lines 389 to 391 in 1df45e4
| if ($this->processInformation['signaled'] && $this->processInformation['termsig'] !== $this->latestSignal) { | |
| throw new RuntimeException(sprintf('The process has been signaled with signal "%s".', $this->processInformation['termsig'])); | |
| } |
This would allow to catch signaled sub-process on a higher code level and retrieve the concerned process when running many, thanks to the process property of the exception.
sroze