diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-10-03 17:53:15 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-12 13:06:12 +0200 |
commit | 601480003ffdee444d8e48aed4222ad8dd23bb59 (patch) | |
tree | 73e7cd76630a3d16c920c07afa4a5b5fa973f15e /freebsd | |
parent | b47bc667a254c1b1a8d6b5a635ca73f6c91c2e1a (diff) |
Centralise fault handling
This should be done as all platforms essentially did the same anyway and there was nothing platform specific.
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/FreeBSDCRT.c | 21 | ||||
-rw-r--r-- | freebsd/FreeBSDCRT.h | 14 |
2 files changed, 0 insertions, 35 deletions
diff --git a/freebsd/FreeBSDCRT.c b/freebsd/FreeBSDCRT.c deleted file mode 100644 index e1024d30..00000000 --- a/freebsd/FreeBSDCRT.c +++ /dev/null @@ -1,21 +0,0 @@ -/* -htop - FreeBSDCRT.c -(C) 2014 Hisham H. Muhammad -Released under the GNU GPLv2, see the COPYING file -in the source distribution for its full text. -*/ - -#include "config.h" -#include "FreeBSDCRT.h" -#include "CRT.h" -#include <stdio.h> -#include <stdlib.h> - -void CRT_handleSIGSEGV(int sgn) { - (void) sgn; - CRT_done(); - fprintf(stderr, "\n\nhtop " VERSION " aborting.\n"); - fprintf(stderr, "\nUnfortunately, you seem to be using an unsupported platform!"); - fprintf(stderr, "\nPlease contact your platform package maintainer!\n\n"); - abort(); -} diff --git a/freebsd/FreeBSDCRT.h b/freebsd/FreeBSDCRT.h deleted file mode 100644 index af64cf10..00000000 --- a/freebsd/FreeBSDCRT.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef HEADER_FreeBSDCRT -#define HEADER_FreeBSDCRT -/* -htop - FreeBSDCRT.h -(C) 2014 Hisham H. Muhammad -Released under the GNU GPLv2, see the COPYING file -in the source distribution for its full text. -*/ - -#include "Macros.h" - -void CRT_handleSIGSEGV(int sgn) ATTR_NORETURN; - -#endif |