MCPcopy
hub / github.com/opencontainers/runc / updateState

Method updateState

libcontainer/container_linux.go:826–835  ·  view source on GitHub ↗
(process parentProcess)

Source from the content-addressed store, hash-verified

824}
825
826func (c *Container) updateState(process parentProcess) (*State, error) {
827 if process != nil {
828 c.initProcess = process
829 }
830 state := c.currentState()
831 if err := c.saveState(state); err != nil {
832 return nil, err
833 }
834 return state, nil
835}
836
837func (c *Container) saveState(s *State) (retErr error) {
838 tmpFile, err := os.CreateTemp(c.stateDir, "state-")

Callers 3

criuNotificationsMethod · 0.95
SetMethod · 0.95
startMethod · 0.80

Calls 2

currentStateMethod · 0.95
saveStateMethod · 0.95

Tested by

no test coverage detected