Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
astrophysik committed Nov 9, 2023
1 parent 4420c1a commit 8e787d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/dl-utils-lite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ void dl_assert__(const char *expr __attribute__((unused)), const char *file_name
use_perror ? "; errno message = " : "",
use_perror ? strerror(errno) : "");
fprintf(stderr, "%s\n", assert_message.data());
#ifdef __unix__
sigval value{0};
if (generate_coredump) {
value.sival_int = static_cast<int>(ExtraSignalAction::GENERATE_COREDUMP);
}
sigqueue(getpid(), SIGABRT, value);
#else
abort();
#endif
}

static sigset_t old_mask;
Expand Down

0 comments on commit 8e787d2

Please sign in to comment.