Hi Daniel How do the command line look like for the Xvnc4 process if you use ps xa to display it? Maybe we have an overflow before vnc get this option...
Regards, // Ola On Thu, Jan 25, 2007 at 11:53:50PM -0700, Daniel Webb wrote: > On Fri, Jan 26, 2007 at 07:14:07AM +0100, Ola Lundqvist wrote: > > > Quite strange. I can not see any obvious reasons in the code. However > > in some places with timeouts the code is in milliseconds but that should > > not matter actually. We do not have an integer overflow either. > > > > Do you know where the limit is, when it works as normal and when it is not? > > Well, this shouldn't have anything to do with it, but since the problem is so > strange, here is the wrapper script I use to start vnc: > > ---------------------------------------- > #!/bin/sh > # Restart desktop $1 with geometry $2 > THIS=$(basename $0) > function die() { echo "$*"; exit 1; } > > if [ -z "$1" ]; then > echo "$THIS - restart a VNC desktop" > echo > echo "usage: $THIS <desktop number> [<geometry>] [<options>]" > echo > echo "where <desktop number> is self-explanitory" > echo " <geometry> is the screen geometry (default 1024x768)" > echo > echo " example: $THIS 1 800x600" > echo > exit 1 > fi > > DESKTOP=$1 > GEOMETRY=$2 > OPTIONS=$3 > JAVA="" > #JAVA="-httpd /usr/local/vnc/classes" > [ -z "$GEOMETRY" ] && GEOMETRY=1024x768 > if [ -z "$OPTIONS" ]; then > [ $DESKTOP = 1 ] && OPTIONS="-name webb_kde -IdleTimeout 40000 > $JAVA -AcceptKeyEvents" > [ $DESKTOP = 2 ] && OPTIONS="-name janet -IdleTimeout 40000 > $JAVA -SecurityTypes None" > [ $DESKTOP = 3 ] && OPTIONS="-name guest -IdleTimeout 40000 > $JAVA -SecurityTypes None" > [ $DESKTOP = 4 ] && OPTIONS="-name webb_ratpoison -IdleTimeout 40000 > $JAVA -AcceptKeyEvents" > [ $DESKTOP = 5 ] && OPTIONS="-name test -IdleTimeout 40000 > $JAVA" > fi > > echo "Executing vncserver -kill :$DESKTOP" > vncserver -kill :$DESKTOP > sleep 5 > echo "Executing vncserver -geometry $GEOMETRY $OPTIONS :$DESKTOP" > vncserver -geometry $GEOMETRY $OPTIONS :$DESKTOP > sleep 5 > --------------------------------- > > If I change the '40000' to the large number (I forgot what it was exactly) > then it always has the behavior I described. I tried several times and it was > always repeatable. I tried turning other options on and off and the only > thing that seemed to affect the behavior was the timeout value. > > I figured you would find an overflow based on the behavior and the value, > that's very weird that it's not that. > > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | +46 (0)54-10 14 30 +46 (0)70-332 1551 | | http://opalsys.net/ UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]