summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
authorrunge <runge>2006-06-08 23:06:26 +0000
committerrunge <runge>2006-06-08 23:06:26 +0000
commit1776a3a55f59052bd69509c889e4370973305f0d (patch)
treee77c3c0b53a1f15c03bba215c60982bc3e28c727 /x11vnc/cleanup.c
parenta60ee2ee9f73d21c4407136d7a2878a34be2f7ed (diff)
downloadlibtdevnc-1776a3a55f59052bd69509c889e4370973305f0d.tar.gz
libtdevnc-1776a3a55f59052bd69509c889e4370973305f0d.zip
x11vnc: -display WAIT:..., -users unixpw=, su_verify dpy command.
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c
index f162b37..0d5926e 100644
--- a/x11vnc/cleanup.c
+++ b/x11vnc/cleanup.c
@@ -155,7 +155,7 @@ void clean_up_exit (int ret) {
}
#endif
/* XXX rdpy_ctrl, etc. cannot close w/o blocking */
- XCloseDisplay(dpy);
+ XCloseDisplay_wr(dpy);
X_UNLOCK;
fflush(stderr);
@@ -311,6 +311,7 @@ static void crash_shell(void) {
crash_shell_help();
} else if (*str == 's' && *(str+1) == '\0') {
sprintf(cmd, "sh -c '(%s) &'", crash_stack_command1);
+ /* crash */
if (no_external_cmds) {
fprintf(stderr, "\nno_external_cmds=%d\n",
no_external_cmds);