ppm-save: pass opened fd
commit46e5841cd2d8ffbaaa95ee7a1358e9650f9a1b93
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 8 Nov 2019 11:23:15 +0000 (8 15:23 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 2 Jan 2020 09:54:57 +0000 (2 13:54 +0400)
tree5b82378ec773c6bd80123cfb2c571b61cae10274
parent4d6316218bf7bf3b8c7c7165b072cc314511a7a7
ppm-save: pass opened fd

This will allow to pre-open the file before running the async finish
handler and avoid potential monitor fdset races.

(note: this is preliminary work for asynchronous screendump support)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ui/console.c
ui/trace-events