Commit b609c158 authored by vvaintroub@wva's avatar vvaintroub@wva

Post-merge fix

parent efa91b54
...@@ -39,22 +39,7 @@ ...@@ -39,22 +39,7 @@
#endif /* HAVE_OPENSSL */ #endif /* HAVE_OPENSSL */
#ifdef __WIN__ #ifdef __WIN__
static void test_signal(int sig_ptr) extern void win_install_sigabrt_handler();
{
#if !defined( DBUG_OFF)
MessageBox(NULL,"Test signal","DBUG",MB_OK);
#endif
#if defined(OS2)
fprintf(stderr, "Test signal %d\n", sig_ptr);
fflush(stderr);
#endif
}
static void init_signals(void)
{
int signals[7] = {SIGINT,SIGILL,SIGFPE,SIGSEGV,SIGTERM,SIGBREAK,SIGABRT } ;
for (int i=0 ; i < 7 ; i++)
signal( signals[i], test_signal) ;
}
#endif #endif
/* /*
...@@ -626,7 +611,7 @@ bool init_new_connection_handler_thread() ...@@ -626,7 +611,7 @@ bool init_new_connection_handler_thread()
{ {
pthread_detach_this_thread(); pthread_detach_this_thread();
#if defined(__WIN__) #if defined(__WIN__)
init_signals(); win_install_sigabrt_handler();
#else #else
/* Win32 calls this in pthread_create */ /* Win32 calls this in pthread_create */
if (my_thread_init()) if (my_thread_init())
......
...@@ -341,7 +341,7 @@ void set_exception_pointers(EXCEPTION_POINTERS *ep) ...@@ -341,7 +341,7 @@ void set_exception_pointers(EXCEPTION_POINTERS *ep)
#define SYMOPT_NO_PROMPTS 0 #define SYMOPT_NO_PROMPTS 0
#endif #endif
void print_stacktrace(gptr unused1, ulong unused2) void print_stacktrace(uchar* unused1, ulong unused2)
{ {
HANDLE hProcess= GetCurrentProcess(); HANDLE hProcess= GetCurrentProcess();
HANDLE hThread= GetCurrentThread(); HANDLE hThread= GetCurrentThread();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment