Delete PID file on exit
commit90a84d131c09096bdc424027526b575fe6a8a8d5
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 7 Sep 2018 12:13:19 +0000 (7 16:13 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 16:47:55 +0000 (2 18:47 +0200)
tree3e85f00703b86e184fc21b483e925c8178b43828
parent61a9346f60fe32143c007bb27bac6e1d83e4aee8
Delete PID file on exit

Register an exit notifier to remove the PID file. By the time atexit()
is called, qemu_write_pidfile() guarantees QEMU owns the PID file,
thus we could safely remove it when exiting.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180907121319.8607-4-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c