xenstored: Fix processing of zero-length messages
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 1 Nov 2011 18:25:17 +0000 (18:25 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 1 Nov 2011 18:25:17 +0000 (18:25 +0000)
commitb9917457d5fb8b23f4b66296aec29e48058b9a29
tree079524ea94d69307f19514786ff21f7be0c0b481
parent33ca1047cba8e385f9b9f433627ed6c116bd4157
xenstored: Fix processing of zero-length messages

When a message with zero length is sent to xenstore, the body of the
message was not processed until the socket or ring had more data to
read; this will cause deadlocks if the requestor is waiting on a
response to continue.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenstore/xenstored_core.c