From 57cf0cdab5480efebaf447d5675e51b0d311ceee Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 11 Jan 2006 15:01:12 +0000 Subject: x11vnc: close fd > 2 in run_user_command(), -nocmds in crash_debug, fix 64bit bug for -solid. --- x11vnc/cleanup.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'x11vnc/cleanup.c') diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index f8c4ae4..890afa8 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -299,6 +299,11 @@ static void crash_shell(void) { crash_shell_help(); } else if (*str == 's' && *(str+1) == '\0') { sprintf(cmd, "sh -c '(%s) &'", crash_stack_command1); + if (no_external_cmds) { + fprintf(stderr, "\nno_external_cmds=%d\n", + no_external_cmds); + goto crash_prompt; + } fprintf(stderr, "\nrunning:\n\t%s\n\n", crash_stack_command1); system(cmd); @@ -316,6 +321,7 @@ static void crash_shell(void) { free(p); } +crash_prompt: fprintf(stderr, "crash> "); } } -- cgit v1.2.1