mirror of
https://github.com/containers/podman.git
synced 2025-07-17 17:43:23 +08:00
Also delete winsz fifo
In conmon 2.0.3, we add another fifo to handle window resizing. This needs to be cleaned up for commands like restore, where the same path is used. Signed-off-by: Peter Hunt <pehunt@redhat.com>
This commit is contained in:
@ -652,6 +652,11 @@ func (c *Container) removeConmonFiles() error {
|
||||
return errors.Wrapf(err, "error removing container %s ctl file", c.ID())
|
||||
}
|
||||
|
||||
winszFile := filepath.Join(c.bundlePath(), "winsz")
|
||||
if err := os.Remove(winszFile); err != nil && !os.IsNotExist(err) {
|
||||
return errors.Wrapf(err, "error removing container %s winsz file", c.ID())
|
||||
}
|
||||
|
||||
oomFile := filepath.Join(c.bundlePath(), "oom")
|
||||
if err := os.Remove(oomFile); err != nil && !os.IsNotExist(err) {
|
||||
return errors.Wrapf(err, "error removing container %s OOM file", c.ID())
|
||||
|
Reference in New Issue
Block a user