util: use qemu_create() in qemu_write_pidfile()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 20 Apr 2022 13:26:20 +0000 (17:26 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 21 Apr 2022 13:09:09 +0000 (17:09 +0400)
commit1b34d08f0b529ccf80e9da9d0928afa97d5d7807
tree14ae7c5817954e8a0c6f9bee276442ef1234ad89
parent96eb9b2b47ecd923ff67848c0b1a92a900f95d91
util: use qemu_create() in qemu_write_pidfile()

qemu_open_old(O_CREATE) should be replaced with qemu_create() which
handles Error reporting.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220420132624.2439741-38-marcandre.lureau@redhat.com>
util/oslib-posix.c