mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
pause: refactor
This is to simplify code review for the next commit.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit fda034c9ec)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -30,7 +30,11 @@ Use runc list to identify instances of containers and their current status.`,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return container.Pause()
|
||||
err = container.Pause()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
@@ -59,6 +63,10 @@ Use runc list to identify instances of containers and their current status.`,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return container.Resume()
|
||||
err = container.Resume()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user