This could happen if xenconsoled have not populate the xenstore key yet. Signed-off-by: Anthony PERARD <[email protected]>
--- CC: Ian Jackson <[email protected]> CC: Ian Campbell <[email protected]> CC: Wei Liu <[email protected]> --- tools/libxl/libxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 50a8928..83fcf30 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1731,7 +1731,7 @@ int libxl_console_get_tty(libxl_ctx *ctx, uint32_t domid, int cons_num, } tty = libxl__xs_read(gc, XBT_NULL, tty_path); - if (!tty) { + if (!tty || tty[0] == '\0') { LOGE(ERROR,"unable to read console tty path `%s'",tty_path); rc = ERROR_FAIL; goto out; -- Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
