mirror of https://github.com/containers/podman.git
Fix comment on container.Stop()
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #68 Approved by: rhatdan
This commit is contained in:
parent
4f8fe2b810
commit
bbef986214
|
@ -516,9 +516,9 @@ func (c *Container) Start() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stop uses the container's requested stop signal (or SIGTERM if no signal was
|
// Stop uses the container's stop signal (or SIGTERM if no signal was specified)
|
||||||
// specified) to stop the container, and if it has not stopped after the given
|
// to stop the container, and if it has not stopped after the given timeout (in
|
||||||
// timeout (in seconds), uses SIGKILL to attempt to forcibly stop the container
|
// seconds), uses SIGKILL to attempt to forcibly stop the container.
|
||||||
// If timeout is 0, SIGKILL will be used immediately
|
// If timeout is 0, SIGKILL will be used immediately
|
||||||
func (c *Container) Stop(timeout int64) error {
|
func (c *Container) Stop(timeout int64) error {
|
||||||
c.lock.Lock()
|
c.lock.Lock()
|
||||||
|
|
|
@ -214,7 +214,7 @@ func (r *Runtime) Shutdown(force bool) error {
|
||||||
// Shutdown all containers if --force is given
|
// Shutdown all containers if --force is given
|
||||||
if force {
|
if force {
|
||||||
ctrs, err := r.state.AllContainers()
|
ctrs, err := r.state.AllContainers()
|
||||||
if err !=nil {
|
if err != nil {
|
||||||
logrus.Errorf("Error retrieving containers from database: %v", err)
|
logrus.Errorf("Error retrieving containers from database: %v", err)
|
||||||
} else {
|
} else {
|
||||||
for _, ctr := range ctrs {
|
for _, ctr := range ctrs {
|
||||||
|
|
Loading…
Reference in New Issue