This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] libxenlight: fix dm_xenstore_record_pid

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxenlight: fix dm_xenstore_record_pid
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 02 Dec 2009 10:55:12 -0800
Delivery-date: Wed, 02 Dec 2009 10:55:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1259779291 0
# Node ID 54409eceb4bef355880520ecb6dd8578fcf2b287
# Parent  176b4c8e2c4bca9c9a030696fac4e119d45c29f9
libxenlight: fix dm_xenstore_record_pid

The function dm_xenstore_record_pid is executed by a child of the main
process and therefore shouldn't use the same xenstore connection:
currently it opens a new connection but still uses the old one.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
 tools/libxl/libxl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r 176b4c8e2c4b -r 54409eceb4be tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Wed Dec 02 13:45:35 2009 +0000
+++ b/tools/libxl/libxl.c       Wed Dec 02 18:41:31 2009 +0000
@@ -663,10 +663,10 @@ void dm_xenstore_record_pid(struct libxl
     /* we mustn't use the parent's handle in the child */
     kvs[0] = "image/device-model-pid";
-    kvs[1] = libxl_sprintf(ctx, "%d", innerchild);
+    kvs[1] = libxl_sprintf(&clone, "%d", innerchild);
     kvs[2] = NULL;
-    rc = libxl_xs_writev(ctx, XBT_NULL, starting->dom_path, kvs);
-    if (rc) XL_LOG_ERRNO(ctx, XL_LOG_ERROR,
+    rc = libxl_xs_writev(&clone, XBT_NULL, starting->dom_path, kvs);
+    if (rc) XL_LOG_ERRNO(&clone, XL_LOG_ERROR,
                          "Couldn't record device model pid %ld at %s/%s",
                          (unsigned long)innerchild, starting->dom_path, kvs);

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxenlight: fix dm_xenstore_record_pid, Xen patchbot-unstable <=