summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
authorrunge <runge>2006-12-28 05:24:25 +0000
committerrunge <runge>2006-12-28 05:24:25 +0000
commit56eb45a5f8ab93abb1e15d4c0b8214d06a3d6d18 (patch)
tree34da978baeba2c625611bcaaf8cba8571ab00f8b /x11vnc/cleanup.c
parent8aa6fb9523957c7f4a3f14fb2c90ea9f9292a41f (diff)
downloadlibtdevnc-56eb45a5f8ab93abb1e15d4c0b8214d06a3d6d18.tar.gz
libtdevnc-56eb45a5f8ab93abb1e15d4c0b8214d06a3d6d18.zip
x11vnc: more work on -ncache.
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c
index 199220d..1134a0f 100644
--- a/x11vnc/cleanup.c
+++ b/x11vnc/cleanup.c
@@ -359,6 +359,7 @@ crash_prompt:
static void interrupted (int sig) {
exit_sig = sig;
if (exit_flag) {
+ fprintf(stderr, "extra[%d] signal: %d\n", exit_flag, sig);
exit_flag++;
if (use_threads) {
usleep2(250 * 1000);
@@ -370,6 +371,7 @@ static void interrupted (int sig) {
exit_flag++;
if (sig == 0) {
fprintf(stderr, "caught X11 error:\n");
+ if (crash_debug) { crash_shell(); }
} else if (sig == -1) {
fprintf(stderr, "caught XIO error:\n");
} else {
@@ -380,6 +382,10 @@ static void interrupted (int sig) {
return;
}
+ if (crash_debug) {
+ crash_shell();
+ }
+
X_UNLOCK;
if (icon_mode) {