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

[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



# 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

 


Rackspace

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