From: Ian Campbell <ian.campbell@citrix.com>
To: xen-devel@lists.xensource.com
Cc: Bastian Blank <waldi@debian.org>
Subject: [PATCH 0 of 4] libxl: improve error handling when device model fails to start early on
Date: Wed, 4 May 2011 15:51:08 +0100 [thread overview]
Message-ID: <patchbomb.1304520668@localhost.localdomain> (raw)
In-Reply-To: <1304440769.18845.136.camel@zakaz.uk.xensource.com>
Currently when the device model fails to start there is a delay until
we timeout and report error, some users have misinterpretted this
delay as a hang.
To improve this firstly we can add an access(2) sanity check on the
device model binary before doing anything.
Secondly we can propagate child failures to the parent much quicker by
adding a pipe between the intermediate process (which blocks in
waitpid() on the child until libxl__spawn_detach is called or the
child exits) to allow failure to be reported immediately and with a
slightly more specific error message.
next prev parent reply other threads:[~2011-05-04 14:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4DB82B38.6090207@gmail.com>
[not found] ` <BAY148-w56B2B88110870F89DE84D4EF980@phx.gbl>
[not found] ` <4DB89A39.6070203@gmail.com>
[not found] ` <BAY148-w282F83283CEBAD8F438117EF9B0@phx.gbl>
[not found] ` <4DB91947.2070203@gmail.com>
[not found] ` <1303977639.25988.1447.camel@localhost.localdomain>
[not found] ` <20110428110658.GA26816@wavehammer.waldi.eu.org>
[not found] ` <1303990128.25988.1570.camel@localhost.localdomain>
[not found] ` <4DB9534F.1070701@gmail.com>
2011-04-28 14:11 ` [Pkg-xen-devel] xen 4.1 blktap2 support Ian Campbell
[not found] ` <20110428122719.GA27897@wavehammer.waldi.eu.org>
2011-04-28 14:20 ` Ian Campbell
2011-04-29 11:08 ` Bastian Blank
2011-05-03 16:39 ` Ian Campbell
2011-05-04 14:51 ` Ian Campbell [this message]
2011-05-04 14:51 ` [PATCH 1 of 4] libxl: check that device model binary is executable Ian Campbell
2011-05-24 14:59 ` Ian Jackson
2011-05-04 14:51 ` [PATCH 2 of 4] libxl: remove redundant call to libxl_domain_device_model Ian Campbell
2011-05-04 14:51 ` [PATCH 3 of 4] libxl: pass libxl__spawn_starting to libxl__spawn_spawn Ian Campbell
2011-05-04 14:51 ` [PATCH 4 of 4] libxl: add statup checks to libxl__wait_for_device_model Ian Campbell
2011-05-04 16:23 ` Ian Campbell
2011-05-24 15:57 ` Ian Jackson
2011-05-24 16:08 ` Ian Campbell
2011-05-19 16:04 ` [PATCH 0 of 4] libxl: improve error handling when device model fails to start early on Ian Jackson
2011-05-20 7:08 ` Ian Campbell
2011-05-05 12:17 ` [PATCH] Re: Re: [Pkg-xen-devel] xen 4.1 blktap2 support Ian Campbell
2011-05-20 17:08 ` Ian Jackson
2011-05-23 9:47 ` Ian Campbell
2011-05-24 15:19 ` Ian Jackson
2011-04-30 13:09 ` Bastian Blank
2011-04-30 14:42 ` Bastian Blank
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=patchbomb.1304520668@localhost.localdomain \
--to=ian.campbell@citrix.com \
--cc=waldi@debian.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).