summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-11-20 19:44:08 +0000
committerHisham Muhammad <hisham@gobolinux.org>2010-11-20 19:44:08 +0000
commitf919ed7cdfdbe613c125f0df4a98d4598df0aeec (patch)
treeb6c63069f8dfb8ac26a095157c8d029d6ce1659a /CRT.c
parent4e29c8235d4a40f2fc34e8c0e112992bbabccb5f (diff)
Don't ask for bug reports when running on unsupported platforms.
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CRT.c b/CRT.c
index 65bfe036..cb5982ce 100644
--- a/CRT.c
+++ b/CRT.c
@@ -124,7 +124,11 @@ void *backtraceArray[128];
static void CRT_handleSIGSEGV(int sgn) {
(void) sgn;
CRT_done();
+ #if __linux
fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n");
+ #else
+ fprintf(stderr, "\n\nhtop " VERSION " aborting. Unsupported platform.\n");
+ #endif
size_t size = backtrace(backtraceArray, sizeof(backtraceArray));
fprintf(stderr, "Backtrace: \n");
backtrace_symbols_fd(backtraceArray, size, 2);

© 2014-2024 Faster IT GmbH | imprint | privacy policy