WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 3 of 6] CA-33440: Make the fork/exec daemon create the

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 3 of 6] CA-33440: Make the fork/exec daemon create the directory containing the unix domain socket it listens on if it doesn't already exist
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Fri, 18 Dec 2009 20:51:15 +0000
Delivery-date: Fri, 18 Dec 2009 12:51:21 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1261169472@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1261169315 0
# Node ID d21edee5f827c0b042412b49b18854f4fac4f261
# Parent  befce8a7c74ac27572baac4ffddc0dc5c721f080
CA-33440: Make the fork/exec daemon create the directory containing the unix 
domain socket it listens on if it doesn't already exist.

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r befce8a7c74a -r d21edee5f827 stdext/fecomms.ml
--- a/stdext/fecomms.ml Fri Dec 18 20:48:34 2009 +0000
+++ b/stdext/fecomms.ml Fri Dec 18 20:48:35 2009 +0000
@@ -4,6 +4,7 @@
   Unix.socket Unix.PF_UNIX Unix.SOCK_STREAM 0
 
 let open_unix_domain_sock_server path =
+  Unixext.mkdir_rec (Filename.dirname path) 0o755;
   Unixext.unlink_safe path;
   let sock = open_unix_domain_sock () in
   Unix.bind sock (Unix.ADDR_UNIX path);
1 file changed, 1 insertion(+)
stdext/fecomms.ml |    1 +


Attachment: xen-api-libs.hg-6.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api