|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 2 of 9] xenconsole: do not exit if a pty device is mi
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 0 of 9] libxl/xl: support for domain 0 bootloader (e.g. pygrub), Ian Campbell
- [Xen-devel] [PATCH 2 of 9] xenconsole: do not exit if a pty device is missing,
Ian Campbell <=
- [Xen-devel] [PATCH 1 of 9] pygrub: introduce easier to parse output format, Ian Campbell
- [Xen-devel] [PATCH 3 of 9] libxl: add printf attribute to libxl_xs_write and fixup resulting warnings, Ian Campbell
- [Xen-devel] [PATCH 4 of 9] libxl: add libxl_strdup convenience function, Ian Campbell
- [Xen-devel] [PATCH 5 of 9] libxl: fix typo, Ian Campbell
- [Xen-devel] [PATCH 6 of 9] libxl/xl: exec xenconsole in current process, defer decision to fork to caller, Ian Campbell
- [Xen-devel] [PATCH 7 of 9] libxl: support mapping files rather than carrying paths around, Ian Campbell
- [Xen-devel] [PATCH 8 of 9] libxl: add function to attach/detach a disk to/from the local VM, Ian Campbell
- [Xen-devel] [PATCH 9 of 9] libxl/xl: support running bootloader (e.g. pygrub) in domain 0, Ian Campbell
- Re: [Xen-devel] [PATCH 0 of 9] libxl/xl: support for domain 0 bootloader (e.g. pygrub), Ian Jackson
|
|
|
|
|