Fix comment on container.Stop()

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #68
Approved by: rhatdan
This commit is contained in:
Matthew Heon 2017-11-28 11:30:15 -05:00 committed by Atomic Bot
parent 4f8fe2b810
commit bbef986214
2 changed files with 4 additions and 4 deletions

View file

@ -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()

View file

@ -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 {