(path string, state State)
| 753 | } |
| 754 | |
| 755 | func (c *Manager) freeze(path string, state State) error { |
| 756 | values := state.Values() |
| 757 | for { |
| 758 | if err := writeValues(path, values); err != nil { |
| 759 | return err |
| 760 | } |
| 761 | current, err := fetchState(path) |
| 762 | if err != nil { |
| 763 | return err |
| 764 | } |
| 765 | if current == state { |
| 766 | return nil |
| 767 | } |
| 768 | time.Sleep(1 * time.Millisecond) |
| 769 | } |
| 770 | } |
| 771 | |
| 772 | func (c *Manager) isCgroupEmpty() bool { |
| 773 | // In case of any error we return true so that we exit and don't leak resources |
no test coverage detected