From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Bastian Blank <bastian@waldi.eu.org>, xen-devel@lists.xensource.com
Subject: Re: [PATCH 1/3] xenstored - postpone fork after initialization
Date: Thu, 27 Mar 2008 09:15:55 +0000 [thread overview]
Message-ID: <C411164B.1E676%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <20080326110016.GA20300@wavehammer.waldi.eu.org>
On 26/3/08 11:00, "Bastian Blank" <bastian@waldi.eu.org> wrote:
> HG changeset patch
> # User Bastian Blank <waldi@debian.org>
> # Date 1206528849 -3600
> # Node ID 5e0412c5f5798b5c0acdd4057c91b3820d6c4afd
> # Parent f5e6cccfdda5537876d6fc2b87ea1124d6043fc8
> Postpone fork after initialization.
>
> Signed-off-by: Bastian Blank <waldi@debian.org>
I applied all three patches as c/s 17296 and then reverted them in c/s 17304
because they don't work. I think delaying xenstored daemonisation breaks its
startup. Certainly xend itself came up, but xenstore-ls for example did not
work, so clearly xenstored had not initialised properly.
In any case I think it's bad practice to daemonise after initialisation --
if you're going to daemonise it makes sense to do it as early as possible.
Perhaps a better way to go would be to wait for the stdout pipe to be
half-closed? Or to pass switch -P to xenstored and wait for the daemon pid
to be written to the stdout pipe?
-- Keir
next prev parent reply other threads:[~2008-03-27 9:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 11:00 [PATCH 1/3] xenstored - postpone fork after initialization Bastian Blank
2008-03-27 9:15 ` Keir Fraser [this message]
2008-03-27 11:27 ` Bastian Blank
2008-03-27 11:36 ` Keir Fraser
2008-03-27 16:20 ` John Levon
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=C411164B.1E676%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=bastian@waldi.eu.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 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.