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 /openbsd | |
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 'openbsd')
-rw-r--r-- | openbsd/OpenBSDCRT.c | 22 | ||||
-rw-r--r-- | openbsd/OpenBSDCRT.h | 15 |
2 files changed, 0 insertions, 37 deletions
diff --git a/openbsd/OpenBSDCRT.c b/openbsd/OpenBSDCRT.c deleted file mode 100644 index 88cb8e23..00000000 --- a/openbsd/OpenBSDCRT.c +++ /dev/null @@ -1,22 +0,0 @@ -/* -htop - OpenBSDCRT.c -(C) 2014 Hisham H. Muhammad -(C) 2015 Michael McConville -Released under the GNU GPLv2, see the COPYING file -in the source distribution for its full text. -*/ - -#include "config.h" -#include "OpenBSDCRT.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/openbsd/OpenBSDCRT.h b/openbsd/OpenBSDCRT.h deleted file mode 100644 index 6259b78c..00000000 --- a/openbsd/OpenBSDCRT.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef HEADER_OpenBSDCRT -#define HEADER_OpenBSDCRT -/* -htop - OpenBSDCRT.h -(C) 2014 Hisham H. Muhammad -(C) 2015 Michael McConville -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 |