Files
Filip Hejsek e5f54bcd1e io: avoid potential double close of qio_channel_file's fd
Make qio_channel_file_close() set fd to -1 even if qemu_close() returns
an error so that qio_channel_file_finalize() doesn't call close again.

On Linux, close() always closes the fd, even when it returns an error.
Because the fd can be reused after it is closed, the close must not
be retried.

Signed-off-by: Filip Hejsek <filip.hejsek@gmail.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-11-12 13:30:13 +03:00
..
2025-10-01 08:33:24 +02:00
2026-07-27 15:51:03 +04:00