| 1595 | } |
| 1596 | |
| 1597 | void removed(const Future<Nothing>& removeAll) |
| 1598 | { |
| 1599 | if (removeAll.isReady()) { |
| 1600 | promise.set(Nothing()); |
| 1601 | } else if (removeAll.isDiscarded()) { |
| 1602 | promise.discard(); |
| 1603 | } else if (removeAll.isFailed()) { |
| 1604 | promise.fail("Failed to remove cgroups: " + removeAll.failure()); |
| 1605 | } |
| 1606 | |
| 1607 | terminate(self()); |
| 1608 | } |
| 1609 | |
| 1610 | const string hierarchy; |
| 1611 | const vector<string> cgroups; |