aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_watch.c
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-09-12 12:31:41 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-09-12 12:31:41 +0000
commitd9d954e1878fc03910aed144f01f632b111c1aa0 (patch)
tree3443066439e6a0c485b0e4318250cc1de3e8d451 /tools/xenstore/xenstored_watch.c
parentec564e53d5b5559de0bb10b9e1023eb0db7943ee (diff)
downloadxen-d9d954e1878fc03910aed144f01f632b111c1aa0.tar.gz
xen-d9d954e1878fc03910aed144f01f632b111c1aa0.tar.bz2
xen-d9d954e1878fc03910aed144f01f632b111c1aa0.zip
Always fire watches, even on the connection which caused the watch to fire.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/xenstore/xenstored_watch.c')
-rw-r--r--tools/xenstore/xenstored_watch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/xenstore/xenstored_watch.c b/tools/xenstore/xenstored_watch.c
index ebd13111d5..b413f4c697 100644
--- a/tools/xenstore/xenstored_watch.c
+++ b/tools/xenstore/xenstored_watch.c
@@ -135,11 +135,8 @@ void fire_watches(struct connection *conn, const char *node, bool recurse)
if (conn && conn->transaction)
return;
- /* Create an event for each watch. Don't send to self. */
+ /* Create an event for each watch. */
list_for_each_entry(i, &connections, list) {
- if (i == conn)
- continue;
-
list_for_each_entry(watch, &i->watches, list) {
if (is_child(node, watch->node))
add_event(i, watch, node);