diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go index 96bc66b2..d977b337 100644 --- a/libcontainer/container_linux.go +++ b/libcontainer/container_linux.go @@ -886,10 +886,10 @@ func waitForCriuLazyServer(r *os.File, status string) error { return err } _, err = fd.Write(data) + fd.Close() if err != nil { return err } - fd.Close() return nil }