I would like to present text prompts when an X11 server is unavailable.
Does anyone know how to detect/catch "Unable to connect to X11 server"? Thanks, -Steve _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Bump
Any ideas would be greatly appreciated. Thanks, -Steve Steve Whitson wrote: I would like to present text prompts when an X11 server is unavailable. Does anyone know how to handle/detect when "Unable to connect to X11 server"? _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Steve,
This kind of thing can be detected, if it’s possible at all, through the subsystem logic during that part of the system that initializes the “Screen” environment. There are several steps to it, and I’m not sure that you get any indication, from the VM to the image, that it can’t find an X11 server. This might be a condition where the VM fails and does not raise the equivalent of a “primitive failed” exception in the image. So, the first case is to see whether this gets raised to the image at all. If it does, you can look for and trap whatever exception gets raised. Did you check whether this message text is found in the image anywhere?
If it doesn’t, there may be a way to trick the system into telling you – but not if the VM exits without giving you any warning at all. The only thing I can think of would be to use the subsystem logic. I’ve never tried to do what I’m suggesting, but there are places in the documentation that suggest it is possible. Consider doing the following:
Be very, very careful if you make any changes to the way the subsystem logic behaves. If you screw it up, your image will crash, hang, or loop and you won’t be able to do anything about it. I suggest for item (2) that you make this switch after everything else is running – such as file system access – so that, if you get an exception, you can dump a stack trace to an external transcript or log file. Otherwise, you will have no clue what happened, assuming you can get that dump in the first place. (Adding special handling for various signals, such as through the ObjectMemory external event registry, may help here.)
Cheers!
From: [hidden email] [mailto:[hidden email]] On Behalf Of Steve Whitson
Bump I would like to present text prompts when an X11
server is unavailable. Does anyone know how to handle/detect when
"Unable to connect to X11 server"?
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I suspect that the image doesn't receive the X11 error. I'll see what I can figure out, possibly with the help of others that know the VM better than I :). The notion of starting the image headless, then attempting to go headful, and handling it when the image cannot, sounds plausible. A great alternative to try if needed. -Steve [hidden email] wrote:
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |