[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Always fire watches, even on the connection which caused the watch to fire.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID b594bb976a743d509f1ffabb5bc698874ab90d8f
# Parent  3feb7fa331edc8f1f49223027bbde9ae695c4d38
Always fire watches, even on the connection which caused the watch to fire.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 3feb7fa331ed -r b594bb976a74 tools/xenstore/xenstored_watch.c
--- a/tools/xenstore/xenstored_watch.c  Sun Sep 11 16:44:23 2005
+++ b/tools/xenstore/xenstored_watch.c  Mon Sep 12 12:31:41 2005
@@ -135,11 +135,8 @@
        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);

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.