Ignore return value of write() in signal handler
This commit is contained in:
parent
e5776f7177
commit
66e69d7f2b
|
@ -77,7 +77,7 @@ stacktraceHandler(int signum)
|
||||||
);
|
);
|
||||||
if (file != -1) {
|
if (file != -1) {
|
||||||
constexpr char header[] = "Error: signal\n";
|
constexpr char header[] = "Error: signal\n";
|
||||||
write(file, header, std::size(header) - 1);
|
[[maybe_unused]] auto ret = write(file, header, std::size(header) - 1);
|
||||||
backtrace_symbols_fd(array, size, file);
|
backtrace_symbols_fd(array, size, file);
|
||||||
close(file);
|
close(file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue