diff options
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r-- | x11vnc/cleanup.c | 6 |
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) { |