all repos — tint2 @ 6e6dff2ca36a2a14d013931858355333a69a1ab6

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Turn off backtrace unless enabled with cmake (issue #550)
o9000 mrovi9000@gmail.com
commit

6e6dff2ca36a2a14d013931858355333a69a1ab6

parent

3e03e81dbf3beeef3ccf564a896d65feba3e5900

1 files changed, 6 insertions(+), 7 deletions(-)

jump to
M src/tint.csrc/tint.c

@@ -220,6 +220,7 @@ }

void dump_backtrace(int log_fd) { +#ifndef DISABLE_BACKTRACE log_string(log_fd, "\n" YELLOW "Backtrace:" RESET "\n"); #ifdef ENABLE_LIBUNWIND

@@ -249,12 +250,9 @@ log_string(log_fd, "\n");

} free(strings); -#else -#ifdef DISABLE_BACKTRACE - log_string(log_fd, "Backtrace support disabled at compile time.\n"); -#endif -#endif -#endif +#endif // ENABLE_EXECINFO +#endif // ENABLE_LIBUNWIND +#endif // DISABLE_BACKTRACE } // sleep() returns early when signals arrive. This function does not.

@@ -271,7 +269,7 @@ }

void handle_crash(const char *reason) { - // We are going to crash, so restart the panel +#ifndef DISABLE_BACKTRACE char path[4096]; sprintf(path, "%s/.tint2-crash.log", get_home_dir()); int log_fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600);

@@ -281,6 +279,7 @@ log_string(log_fd, RESET "\n");

dump_backtrace(log_fd); log_string(log_fd, RED "Please create a bug report with this log output." RESET "\n"); close(log_fd); +#endif } #ifdef BACKTRACE_ON_SIGNAL