mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Ignore return value of write() in signal handler
This commit is contained in:
parent
e5776f7177
commit
66e69d7f2b
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ stacktraceHandler(int signum)
|
|||
#endif
|
||||
);
|
||||
if (file != -1) {
|
||||
constexpr char header[] = "Error: signal\n";
|
||||
write(file, header, std::size(header) - 1);
|
||||
constexpr char header[] = "Error: signal\n";
|
||||
[[maybe_unused]] auto ret = write(file, header, std::size(header) - 1);
|
||||
backtrace_symbols_fd(array, size, file);
|
||||
close(file);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue