summaryrefslogtreecommitdiffstats
path: root/x11vnc/x11vnc.c
diff options
context:
space:
mode:
authorrunge <runge>2007-02-19 03:08:12 +0000
committerrunge <runge>2007-02-19 03:08:12 +0000
commitd60e8ccfc8c1b173c914ffa26a88203690bf9e3a (patch)
treebc6e83b7e1a27c5b8a9c877fcd03f2bdfc68c6a8 /x11vnc/x11vnc.c
parenta874ddee36c168750abe9a81eab481906e9f7365 (diff)
downloadlibtdevnc-d60e8ccfc8c1b173c914ffa26a88203690bf9e3a.tar.gz
libtdevnc-d60e8ccfc8c1b173c914ffa26a88203690bf9e3a.zip
x11vnc: Get ultravnc textchat working with ssvnc.
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r--x11vnc/x11vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c
index 77cb075..38a1fe5 100644
--- a/x11vnc/x11vnc.c
+++ b/x11vnc/x11vnc.c
@@ -3814,6 +3814,7 @@ int main(int argc, char* argv[]) {
#if LIBVNCSERVER_HAVE_FORK && LIBVNCSERVER_HAVE_SETSID
if (bg) {
+ int p, n;
if (getenv("X11VNC_LOOP_MODE_BG")) {
if (screen && screen->listenSock >= 0) {
close(screen->listenSock);
@@ -3835,7 +3836,6 @@ int main(int argc, char* argv[]) {
}
}
/* fork into the background now */
- int p, n;
if ((p = fork()) > 0) {
exit(0);
} else if (p == -1) {