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
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
toProcessGroupparameter insend(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