mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
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
|
||||
}
|
||||
|
||||
// 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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue