Skip to content

[Feature] Option to terminate any subprocesses launched by the process #67

@dave256

Description

@dave256

Is your feature request related to a problem? Please describe.
If the created process spawns subprocesses (such as running a shell script and the script spawns a Python program), it seems the teardown method doesn't kill the subprocesses. This is problematic if the spawned subprocess has entered an infinite loop/hang. I made a fork and tried changing the parameter of the toProcessGroup parameter in send(signal:toProcessGroup:) method to true but that still didn't seem to work.

Describe the solution you'd like
There should be an option to also kill any subprocesses spawned by the process.

Describe alternatives you've considered
I don't have any alternatives other than perhaps running it in a separate XPC process.

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions