Hi
On Fri, Aug 31, 2018 at 6:29 PM, Stefan Weil wrote:
> Am 31.08.2018 um 16:53 schrieb Marc-André Lureau:
> [...]
>> +static const char *pid_file;
>> +
>> +static void qemu_unlink_pidfile(void)
>> +{
>> +if (pid_file) {
>> +unlink(pid_file);
>> +}
>> +}
>> +
>> bool machine_init
Am 31.08.2018 um 16:53 schrieb Marc-André Lureau:
[...]
> +static const char *pid_file;
> +
> +static void qemu_unlink_pidfile(void)
> +{
> +if (pid_file) {
> +unlink(pid_file);
> +}
> +}
> +
> bool machine_init_done;
>
> void qemu_add_machine_init_done_notifier(Notifier *notify
Register an exit handler 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
---
vl.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff