ia64/xen-unstable
changeset 3991:2101e98387dd
bitkeeper revision 1.1236.1.60 (42299622PoSV4xT6Ds22AHb8mP24xA)
XCS binds thru /var/lib/xen and gives better error message if this
fails.
Signed-off-by: Muli Ben-Yahuda <mulix@mulix.org>
Signed-off-by: Keir Fraser <keir@xensource.com>
XCS binds thru /var/lib/xen and gives better error message if this
fails.
Signed-off-by: Muli Ben-Yahuda <mulix@mulix.org>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Sat Mar 05 11:21:06 2005 +0000 (2005-03-05) |
parents | 27179d82f20d |
children | 00e4db805624 |
files | tools/misc/xend tools/xcs/xcs.c tools/xcs/xcs_proto.h |
line diff
1.1 --- a/tools/misc/xend Fri Mar 04 16:10:21 2005 +0000 1.2 +++ b/tools/misc/xend Sat Mar 05 11:21:06 2005 +0000 1.3 @@ -24,7 +24,7 @@ import sys 1.4 import socket 1.5 import time 1.6 1.7 -XCS_PATH = "/var/xen/xcs_socket" 1.8 +XCS_PATH = "/var/lib/xen/xcs_socket" 1.9 XCS_EXEC = "/usr/sbin/xcs" 1.10 XCS_LOGFILE = "/var/log/xcs.log" 1.11
2.1 --- a/tools/xcs/xcs.c Fri Mar 04 16:10:21 2005 +0000 2.2 +++ b/tools/xcs/xcs.c Sat Mar 05 11:21:06 2005 +0000 2.3 @@ -241,7 +241,7 @@ static int listen_socket (char *listen_p 2.4 2.5 if (bind(s, (struct sockaddr *) &a, sizeof (a)) < 0) 2.6 { 2.7 - perror ("bind"); 2.8 + fprintf (stderr, "bind('%s'): %s\n", listen_path, strerror(errno)); 2.9 close (s); 2.10 return -1; 2.11 }
3.1 --- a/tools/xcs/xcs_proto.h Fri Mar 04 16:10:21 2005 +0000 3.2 +++ b/tools/xcs/xcs_proto.h Sat Mar 05 11:21:06 2005 +0000 3.3 @@ -9,7 +9,7 @@ 3.4 #ifndef __XCS_PROTO_H__ 3.5 #define __XCS_PROTO_H__ 3.6 3.7 -#define XCS_SUN_PATH "/var/xen/xcs_socket" 3.8 +#define XCS_SUN_PATH "/var/lib/xen/xcs_socket" 3.9 3.10 /* xcs message types: */ 3.11 #define XCS_CONNECT_CTRL 0 /* This is a control connection. */