From: Kevin Wolf <kwolf@suse.de>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [RFC][PATCH] Use ioemu block drivers through blktap
Date: Mon, 31 Mar 2008 11:10:06 +0200 [thread overview]
Message-ID: <47F0AA6E.2050909@suse.de> (raw)
In-Reply-To: <18413.3411.635161.295233@mariner.uk.xensource.com>
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
next prev parent reply other threads:[~2008-03-31 9:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-10 17:03 [RFC][PATCH] Use ioemu block drivers through blktap Kevin Wolf
2008-03-13 12:25 ` Kevin Wolf
2008-03-13 14:21 ` Konrad Rzeszutek
2008-03-14 9:37 ` Kevin Wolf
2008-03-17 14:12 ` Konrad Rzeszutek
2008-03-28 15:22 ` Ian Jackson
2008-03-31 9:10 ` Kevin Wolf [this message]
2008-03-31 9:36 ` Ian Jackson
2008-03-31 11:11 ` Kevin Wolf
2008-03-31 13:23 ` Ian Jackson
2008-03-31 13:31 ` Keir Fraser
2008-03-31 13:37 ` Ian Jackson
2008-03-31 13:37 ` Kevin Wolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47F0AA6E.2050909@suse.de \
--to=kwolf@suse.de \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.