lp:~serge-hallyn/ubuntu/utopic/upstart/cgroup-race1
Created by
Serge Hallyn
and last modified
- Get this branch:
- bzr branch lp:~serge-hallyn/ubuntu/utopic/upstart/cgroup-race1
Only
Serge Hallyn
can upload to this branch. If you are
Serge Hallyn
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
Branch information
- Owner:
- Serge Hallyn
- Status:
- Development
Recent revisions
- 1583. By Serge Hallyn
-
cgroup: don't mark cgroup to autremove.
We have a race. When main upstart job exits, all tasks are removed
from the cgroup, so autoremove kicks in. Then post-stop tries to create
the same cgroup again. Then it execs the tasks to be run in that
cgroup. Between the re-create and the exec, the autoremove thread may
actually run and remove the cgroup.So simply remove the cgroup after post-stop. We mark it for autoremove
(in case there is a lingering task) and also try to recursively remove it.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:ubuntu/utopic/upstart