You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently a destroy method in the core::Program trait that closes stdin, waits for the process to finish and then closes stderr/stdout.
I am suggesting that either a new method be added to Program that forcibly kills the spawned process, or that the behaviour of destroy be changed to act in that way.
I think it would be better if the behaviour of destroy was changed because:
I think that forcible termination is an intuitive behaviour for the name destroy.
I don't think anybody is actually using the destroy method currently because, due to a bug in core::run, a segfault will occur due to a double fclose if you actually call it.
Are there any objections to this? If not I can send a pull request with code/tests.