Yes, ideally we'd check to see if any other job instances were using the cgroup 
before calling cgroup_clear(). However, this is rather more tricky than it 
appears since:

1) the cgroup stanzas only get expanded in the child processes, and hence only 
the children know what cgroups they are actually members of.

2) the children don't have the current list of running cgroup job instances - 
that's back in the parent.




-- 
https://code.launchpad.net/~jamesodhunt/upstart/bug-1357252/+merge/232680
Your team Upstart Reviewers is subscribed to branch lp:upstart.

-- 
upstart-devel mailing list
upstart-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to