* Added better handling of SIGBUS, including the error type and fault address in the dump.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1247 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2011-07-20 09:57:29 +00:00
parent f5d4924b22
commit fa8ef65cd7
3 changed files with 74 additions and 1 deletions
+5
View File
@@ -44,6 +44,9 @@ class SignalHandler {
public:
typedef sigc::slot0<void> Slot;
// typedef void (*handler_slot)(int, siginfo_t *info, ucontext_t *uap);
typedef void (*handler_slot)(int, siginfo_t*, void*);
#ifdef NSIG
static const unsigned int HIGHEST_SIGNAL = NSIG;
#else
@@ -55,6 +58,8 @@ public:
static void set_ignore(unsigned int signum);
static void set_handler(unsigned int signum, Slot slot);
static void set_sigaction_handler(unsigned int signum, handler_slot slot);
static const char* as_string(unsigned int signum);
private: