diff options
author | runge <runge> | 2006-01-11 15:01:12 +0000 |
---|---|---|
committer | runge <runge> | 2006-01-11 15:01:12 +0000 |
commit | 57cf0cdab5480efebaf447d5675e51b0d311ceee (patch) | |
tree | cb4b1419712454d31e85bd8558ff67b2d8fdac90 /x11vnc/cleanup.c | |
parent | 0b7a0030acc27377b01e3afa41f672dc4d6a7561 (diff) | |
download | libtdevnc-57cf0cdab5480efebaf447d5675e51b0d311ceee.tar.gz libtdevnc-57cf0cdab5480efebaf447d5675e51b0d311ceee.zip |
x11vnc: close fd > 2 in run_user_command(), -nocmds in crash_debug, fix 64bit bug for -solid.
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 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> "); } } |