> -----Original Message----- > From: Bjvrn Persson [mailto:[EMAIL PROTECTED] > > Avery Payne wrote: > > The "retain session" feature you desire should be possible by removing > > the "-once" flag from the inetd setup. > > When "-inetd" is given, XVNC dies when the connection closes. It never > listens for other connections, and if it did you'd have to check which port > it got and remember to connect to that port next time. People would keep > forgetting this and filling the system with zombie sessions. >
It is even worse: For the port in use; `Xvnc -inetd` does not use any port, it uses stdio (stdin and stdout) for communication. Its inetd that hooks this to a port and it is inetd that controls the communication. inetd will (at least by default) start new Xvnc processes to handle new calls to the same port. For the ending of Xvnc, its inetd that starts Xvnc as soon as a connection is made and it kills Xvnc as soon as the connection is lost. Hence, the current `Xvnc -inetd` has no control on the port and no controll on its live. To pass the port-controll issue, I'd say Xvnc might be extended to be able to open aditional communication on an other port. Either on the fly or from the commandline. To pass the live-contoll issue, I'd say Xvnc should be able to dispatch itself once necessary. It sounds hard to do but on unix, it is just a `fork` with proper options. Either do it 'just in time' or do it as 'soon as necessary'. Both have their pro's and con's: 'just in time' must be catched, 'as soon as necessary' must keep the session shared. For 'on the fly', the settings (for both above ideas) can include all options like -shared and -once and in the end maybe even the -geometry or -depth. It would be nice if those settings can be made with the $DISPLAY address, like working with Xresources (`xrdb`) or xsettings (`xset`). For a start, it can be nice if `xrdb -query` or `xset -q` list the current settings of Xvnc. I think xrdb is the most easy to extend. CBee _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
