ia64/xen-unstable

changeset 6755:b594bb976a74

Always fire watches, even on the connection which caused the watch to fire.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Sep 12 12:31:41 2005 +0000 (2005-09-12)
parents 3feb7fa331ed
children f752e0c873a6
files tools/xenstore/xenstored_watch.c
line diff
     1.1 --- a/tools/xenstore/xenstored_watch.c	Sun Sep 11 16:44:23 2005 +0000
     1.2 +++ b/tools/xenstore/xenstored_watch.c	Mon Sep 12 12:31:41 2005 +0000
     1.3 @@ -135,11 +135,8 @@ void fire_watches(struct connection *con
     1.4  	if (conn && conn->transaction)
     1.5  		return;
     1.6  
     1.7 -	/* Create an event for each watch.  Don't send to self. */
     1.8 +	/* Create an event for each watch. */
     1.9  	list_for_each_entry(i, &connections, list) {
    1.10 -		if (i == conn)
    1.11 -			continue;
    1.12 -
    1.13  		list_for_each_entry(watch, &i->watches, list) {
    1.14  			if (is_child(node, watch->node))
    1.15  				add_event(i, watch, node);