mirror of
https://github.com/qemu/qemu.git
synced 2026-11-11 14:24:37 +00:00
A channel closes its fd when the last reference to it is dropped. Closing stdio fds is typically unwanted, so warn when they are passed to qio_channel_file_new_fd(). Change the documentation of qio_channel_file_new_fd() to explicitly say that passing stdio descriptors is incorrect. Signed-off-by: Filip Hejsek <filip.hejsek@gmail.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20261017-fix-stdio-close-v3-2-cfff0122a2a4@gmail.com>