mirror of https://github.com/xzeldon/htop.git
Use STDERR_FILENO instead of magic number
This commit is contained in:
parent
1f5f40c091
commit
d2ee40597c
2
CRT.c
2
CRT.c
|
@ -972,7 +972,7 @@ void CRT_handleSIGSEGV(int signal) {
|
||||||
void *backtraceArray[256];
|
void *backtraceArray[256];
|
||||||
|
|
||||||
size_t size = backtrace(backtraceArray, ARRAYSIZE(backtraceArray));
|
size_t size = backtrace(backtraceArray, ARRAYSIZE(backtraceArray));
|
||||||
backtrace_symbols_fd(backtraceArray, size, 2);
|
backtrace_symbols_fd(backtraceArray, size, STDERR_FILENO);
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"---\n"
|
"---\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
Loading…
Reference in New Issue