diff options
author | runge <runge> | 2008-02-01 02:05:10 +0000 |
---|---|---|
committer | runge <runge> | 2008-02-01 02:05:10 +0000 |
commit | 7e7ef1b4716839045c4904c472564f13290ebd8b (patch) | |
tree | 030f74552aedb6036a3c4a918f030f9cdbb03c6f /x11vnc/ssltools.h | |
parent | c17aef31ac3540a04707a7f14f04524cc76c93d0 (diff) | |
download | libtdevnc-7e7ef1b4716839045c4904c472564f13290ebd8b.tar.gz libtdevnc-7e7ef1b4716839045c4904c472564f13290ebd8b.zip |
x11vnc: during speeds estimate, guard against client disconnecting.
Diffstat (limited to 'x11vnc/ssltools.h')
-rw-r--r-- | x11vnc/ssltools.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/x11vnc/ssltools.h b/x11vnc/ssltools.h index ace6511..5b46339 100644 --- a/x11vnc/ssltools.h +++ b/x11vnc/ssltools.h @@ -1639,7 +1639,11 @@ char create_display[] = " cookie=`(echo $r; date; uptime; ps -ealf 2>&1) | md5sum | awk '{print $1}'`\n" " fi\n" " elif [ \"X$have_xauth\" != \"X\" ]; then\n" -" cookie=`$have_xauth list | awk '{print $NF}' | tail -n 1`\n" +" if uname | grep SunOS > /dev/null; then\n" +" cookie=`$have_xauth list | awk '{print $NF}' | tail -1`\n" +" else\n" +" cookie=`$have_xauth list | awk '{print $NF}' | tail -n 1`\n" +" fi\n" " fi\n" " if [ \"X$cookie\" = \"X\" ]; then\n" " # oh well..\n" |