From d0f3c4abf352b8a51f29c2c329571061da642b55 Mon Sep 17 00:00:00 2001 From: rajasec Date: Mon, 18 Jan 2016 00:30:47 +0530 Subject: [PATCH] Adding the state transition for pause Signed-off-by: rajasec Removing nils per review comment Signed-off-by: rajasec --- libcontainer/state_linux.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcontainer/state_linux.go b/libcontainer/state_linux.go index 5e1bb731f8e..7bcfb420904 100644 --- a/libcontainer/state_linux.go +++ b/libcontainer/state_linux.go @@ -206,6 +206,10 @@ func (n *nullState) transition(s containerState) error { switch s.(type) { case *restoredState: n.c.state = s + case *runningState: + n.c.state = s + case *pausedState: + n.c.state = s default: // do nothing for null states }