|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [RFC][PATCH] Use ioemu block drivers through blktap
Ian Jackson schrieb:
> Sorry for picking this up now, but I'm trying to reconcile ioemu with
> qemu and I wondered what the purpose of these changes was:
>
>> +static void qemu_sighup_handler(int signal)
>> +{
>> + fprintf(stderr, "Received SIGHUP, terminating.\n");
>> + exit(0);
>> +}
>> +
>
>> - signal(SIGHUP, SIG_DFL);
>> + signal(SIGHUP, qemu_sighup_handler);
I needed a shutdown handler to properly close the blktap connection and
delete the named pipes associated with the qemu-dm instance. When a
domain is destroyed, qemu-dm receives a SIGHUP. However, with the
default SIGHUP handler no atexit functions are called, so I had to add
this handler which performs a clean exit.
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|