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

Be able to group/tag processes #7

Open
marianopeck opened this issue Jan 14, 2016 · 1 comment
Open

Be able to group/tag processes #7

marianopeck opened this issue Jan 14, 2016 · 1 comment

Comments

@marianopeck
Copy link
Collaborator

From Max Leske

The use case I have in mind is again ImageMagick. Imagine I want to kill all processes that invoked ImageMagick, and those invocations are strewn across the code base. Also assume that I invoke another command often, say curl. I want to be able to kill all ImageMagick commands or all curl commands at once. That means I would have to track child processes separately for both (or in some kind of centralised object). If OSSubprocess had a facility for grouping the only thing I’d have to do would be to add something like #groupAs: #imageMagick when creating the process.
I do see that this may take some work. I also concede that it’s not something terribly necessary. I just though it could be nice (think of CGroups for instance: https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt).

Max, would you agree that instead of groupAs: a tag: could do the trick and since it's quite general it might have other use cases besides grouping?

@theseion
Copy link
Collaborator

Yes, definitely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants