On Sun, Apr 21, 2002, Oron Peled wrote about "Re: X server crashes":
> On Sun, 21 Apr 2002 18:50:10 +0200
> "Alexander Maryanovsky" <[EMAIL PROTECTED]> wrote:
>
> > So I guess I have two questions:
> > 1. What is the technical reason processes crash when the
> > X server they're running under crashes?
>
> They loose the connection (Stream Socket -- TCP or Local).
>....
> > Why can't one put up a proxy between the processes and the
> > X server which would delegate everything to it, make X server
> > crashes transparent to the processes and allow restarting
> > the X server (again transparently to the processes) when it
> > goes down? It seems like a fairly simple thing to do...
>
> You could put a proxy between them (there are proxies like
> that for other purposes -- like sending to multiple displays).
> However, there is a lot of "state" stored in the X-server
>...
If you are looking for a working solution, rather than a "perfect"
solution, you might want to try VNC. If you're running Redhat, make
sure the vnc and vnc-server packages are installed. Then run
vncserver
to start a server. This server is not yet "attached" to any display - you
can "attach" to it from the same computer, from another computer on
the network (free Winodws VNC clients are also available) and even
from several displays at the same time (it's a fun way to show someone
on the other side of the country the same thing you're seeing!)
Anyway, to attach to this newly created server from the local machine, do
vncviewer localhost:1
(you will need to supply the same password you gave to vncserver, and
the :1 might differ if you're running more than one vncservers concurrently).
Sort of X within X (although VNC isn't X, which is why I said this is a
working solution, but not a perfect one). If your X crashes, it doesn't
matter - you can attach to the same vnc server (which continues to run,
assuming your machine didn't crash). Similarly, if you run vncviewer on
a different computer (e.g., a dumb terminal or Windows machine) it doesn't
matter if that crashes as long as the machine running "vncserver" is still
intact.
With VNC, you can even start a VNC server at work (for example) and do stuff
in it, and when you come home you can remotely "attach" to that existing
session, and see everything you saw at work. Just like screen(1), but for
graphical applications. VNC is a very useful free application :)
--
Nadav Har'El | Sunday, Apr 21 2002, 10 Iyyar 5762
[EMAIL PROTECTED] |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |It's no use crying over spilt milk -- it
http://nadav.harel.org.il |only makes it salty for the cat.
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]