Skip to contentSkip to conversation

xenstored startup - race condition

DISCUSSION Bastian Blank 1 participant 2 messages Mar 7, 2008

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
Yes, it is written.  Good shall always destroy evil.
		-- Sirah the Yang, "The Omega Glory", stardate unknown
#1 lore raw
Quoted 2 lines · Bastian Blank

The Debian packages carries a patch since some time which fixes a race condition in the xenstore startup.

To be correct, it only workarounds them with a sleep.

Bastian

Signature · 1 line
Spock: We suffered 23 casualties in that attack, Captain.