diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-11-08 17:31:43 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-02 16:29:32 +0400 |
commit | c5f2bce5ee75ec3267b025f2053bac728da9a6c3 (patch) | |
tree | b721e4e5bdd337a8aafa104f43a9a324343fb53b /util/osdep.c | |
parent | f60a1cdca52dd9cf49aad768471d9e0ea6751f76 (diff) | |
download | qemu-c5f2bce5ee75ec3267b025f2053bac728da9a6c3.zip qemu-c5f2bce5ee75ec3267b025f2053bac728da9a6c3.tar.gz qemu-c5f2bce5ee75ec3267b025f2053bac728da9a6c3.tar.bz2 |
screendump: replace FILE with QIOChannel and fix close()/qemu_close()
The file opened for ppm_save() may be a /dev/fdset, in which case a
dup fd is added to the fdset. It should be removed by calling
qemu_close(), instead of the implicit close() on fclose().
I don't see a convenient way to solve that with stdio streams, so I
switched the code to QIOChannel which uses qemu_close().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'util/osdep.c')
0 files changed, 0 insertions, 0 deletions