diff options
author | runge <runge> | 2008-10-29 23:41:28 +0000 |
---|---|---|
committer | runge <runge> | 2008-10-29 23:41:28 +0000 |
commit | 4dbc5d5a129ac009521da08bdc83eba5ea1eb51b (patch) | |
tree | c0f72b543f54996eb3ef10aab3f4207bfff33c07 /x11vnc/ssltools.h | |
parent | 8938cda1e7e09d946475fddaba46194baf7e6388 (diff) | |
download | libtdevnc-4dbc5d5a129ac009521da08bdc83eba5ea1eb51b.tar.gz libtdevnc-4dbc5d5a129ac009521da08bdc83eba5ea1eb51b.zip |
x11vnc: -http_oneport for single port HTTP and VNC. Improve find_display wrt lsof blocking with -b.
Diffstat (limited to 'x11vnc/ssltools.h')
-rw-r--r-- | x11vnc/ssltools.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/ssltools.h b/x11vnc/ssltools.h index 3824870..a238afe 100644 --- a/x11vnc/ssltools.h +++ b/x11vnc/ssltools.h @@ -802,7 +802,7 @@ char find_display[] = " # otherwise try lsof:\n" " pvt=`ps wwwwwaux | grep X | egrep -v 'startx|xinit' | egrep \" $d4 \" | head -n 1 | awk '{print $2}'`\n" " if [ \"X$pvt\" != \"X\" ]; then\n" -" vt=`lsof -p \"$pvt\" 2>/dev/null | egrep '/dev/tty([789]|[1-9][0-9][0-9]*)$' | grep -v grep | head -n 1 | awk '{print $NF}' | sed -e 's,/dev/tty,,'`\n" +" vt=`lsof -b -p \"$pvt\" 2>/dev/null | egrep '/dev/tty([789]|[1-9][0-9][0-9]*)$' | grep -v grep | head -n 1 | awk '{print $NF}' | sed -e 's,/dev/tty,,'`\n" " if echo \"$vt\" | grep '^[0-9][0-9]*$' > /dev/null; then\n" " chvt0=\",VT=$vt\"\n" " else\n" |