Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the NSConcreteTask.setStartsNewProcessGroup private API to terminate subprocesses when the parent process exits #110

Merged
merged 2 commits into from
Sep 27, 2018

Conversation

ikesyo
Copy link
Member

@ikesyo ikesyo commented Sep 10, 2018

Would fix #3. I'm not sure how to correctly test this but this passes the test suites at least.

…inate subprocesses when the parent process exits
@tmspzz tmspzz requested a review from mdiep September 13, 2018 11:37
@mdiep
Copy link
Member

mdiep commented Sep 13, 2018

Ugh. I hate using private APIs. But this seems like it's probably worth it.

@ikesyo
Copy link
Member Author

ikesyo commented Sep 25, 2018

Thanks @mdiep. I'm not a fan of this too, but it should work nicely.

However, it occurs to me that this might not be ideal in some cases, so I'll add a parameter to the launch method to control the behavior.

@ikesyo
Copy link
Member Author

ikesyo commented Sep 25, 2018

Just updated: 9143189, which should preserve the backward compatibility.

@ikesyo ikesyo requested a review from mdiep September 25, 2018 15:54
@ikesyo ikesyo merged commit e243312 into master Sep 27, 2018
@ikesyo ikesyo deleted the nsconcretetask-setstartsnewprocessgroup branch September 27, 2018 00:51
@rahul0x24 rahul0x24 mentioned this pull request Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subprocesses are not terminated when the parent process exits
2 participants