Skip to content

Add a ProcessSignaledException #25768

Closed
Closed
@soullivaneuh

Description

@soullivaneuh
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:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions