summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/container.go6
-rw-r--r--libpod/runtime.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/libpod/container.go b/libpod/container.go
index 3de0ed02e..8a2ff1fad 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -516,9 +516,9 @@ func (c *Container) Start() error {
return nil
}
-// Stop uses the container's requested stop signal (or SIGTERM if no signal was
-// specified) to stop the container, and if it has not stopped after the given
-// timeout (in seconds), uses SIGKILL to attempt to forcibly stop the container
+// Stop uses the container's stop signal (or SIGTERM if no signal was specified)
+// to stop the container, and if it has not stopped after the given timeout (in
+// seconds), uses SIGKILL to attempt to forcibly stop the container.
// If timeout is 0, SIGKILL will be used immediately
func (c *Container) Stop(timeout int64) error {
c.lock.Lock()
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 74328bed7..1a18b7e8e 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -214,7 +214,7 @@ func (r *Runtime) Shutdown(force bool) error {
// Shutdown all containers if --force is given
if force {
ctrs, err := r.state.AllContainers()
- if err !=nil {
+ if err != nil {
logrus.Errorf("Error retrieving containers from database: %v", err)
} else {
for _, ctr := range ctrs {