[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2 of 9] xenconsole: do not exit if a pty device is missing
this can just mean we have raced with the bootloader exiting and if we continue we will likely see the real domain console show up. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> diff -r 988cf8dff1c0 -r 24a1b866b2d1 tools/console/client/main.c --- a/tools/console/client/main.c Mon Jul 12 14:56:37 2010 +0100 +++ b/tools/console/client/main.c Mon Jul 12 14:56:37 2010 +0100 @@ -115,6 +115,8 @@ * disambiguate: just read the pty path */ pty_path = xs_read(xs, XBT_NULL, path, &len); if (pty_path != NULL) { + if (access(pty_path, R_OK|W_OK) != 0) + continue; pty_fd = open(pty_path, O_RDWR | O_NOCTTY); if (pty_fd == -1) err(errno, "Could not open tty `%s'", _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |