Skip to content

Commit

Permalink
Update src/ggml.c
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren authored Jan 23, 2025
1 parent 66a6227 commit 5be98cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ static void ggml_print_backtrace_symbols(void) {
#endif

static void ggml_print_backtrace(void) {
const char* GGML_NO_BACKTRACE = getenv("GGML_NO_BACKTRACE");
if (GGML_NO_BACKTRACE)
const char * GGML_NO_BACKTRACE = getenv("GGML_NO_BACKTRACE");
if (GGML_NO_BACKTRACE) {
return;
}
char attach[32];
snprintf(attach, sizeof(attach), "attach %d", getpid());
int pid = fork();
Expand Down

0 comments on commit 5be98cf

Please sign in to comment.