()
| 861 | } |
| 862 | |
| 863 | func (c *Container) currentStatus() (Status, error) { |
| 864 | if err := c.refreshState(); err != nil { |
| 865 | return -1, err |
| 866 | } |
| 867 | return c.state.status(), nil |
| 868 | } |
| 869 | |
| 870 | // refreshState needs to be called to verify that the current state on the |
| 871 | // container is what is true. Because consumers of libcontainer can use it |
no test coverage detected