diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/backtrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/backtrace.c b/src/common/backtrace.c index afdc10d6a9..2841281927 100644 --- a/src/common/backtrace.c +++ b/src/common/backtrace.c @@ -109,8 +109,10 @@ log_backtrace(int severity, int domain, const char *msg) tor_log(severity, domain, "%s. Stack trace:", msg); if (!symbols) { + /* LCOV_EXCL_START -- we can't provoke this. */ tor_log(severity, domain, " Unable to generate backtrace."); goto done; + /* LCOV_EXCL_STOP */ } for (i=0; i < depth; ++i) { tor_log(severity, domain, " %s", symbols[i]); @@ -173,8 +175,10 @@ install_bt_handler(void) for (i = 0; trap_signals[i] >= 0; ++i) { if (sigaction(trap_signals[i], &sa, NULL) == -1) { + /* LCOV_EXCL_START */ log_warn(LD_BUG, "Sigaction failed: %s", strerror(errno)); rv = -1; + /* LCOV_EXCL_STOP */ } } |