WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] xenstored startup - race condition

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xenstored startup - race condition
From: Bastian Blank <bastian@xxxxxxxxxxxx>
Date: Fri, 7 Mar 2008 13:14:51 +0100
Delivery-date: Fri, 07 Mar 2008 04:15:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Hi folks

The Debian packages carries a patch since some time which fixes a race
condition in the xenstore startup. Sometimes xenconsoled is not able to
connect the xenstore and just exits. A second try works, so xenstored
was just not yet ready.

Proposed fix:
- xend asks xenstored to also fork, this also reparents it to init.
- xenstored delays the exit of the parent until properly initialized and
  ready to accept connections.
- xend waits for exit of this process.

Implementation: Either fork, execv and waitpid or subprocess.

Bastian

-- 
Yes, it is written.  Good shall always destroy evil.
                -- Sirah the Yang, "The Omega Glory", stardate unknown

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>