Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b609c158
Commit
b609c158
authored
Feb 19, 2008
by
vvaintroub@wva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fix
parent
efa91b54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
sql/sql_connect.cc
sql/sql_connect.cc
+2
-17
sql/stacktrace.c
sql/stacktrace.c
+1
-1
No files found.
sql/sql_connect.cc
View file @
b609c158
...
...
@@ -39,22 +39,7 @@
#endif
/* HAVE_OPENSSL */
#ifdef __WIN__
static
void
test_signal
(
int
sig_ptr
)
{
#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
)
;
}
extern
void
win_install_sigabrt_handler
();
#endif
/*
...
...
@@ -626,7 +611,7 @@ bool init_new_connection_handler_thread()
{
pthread_detach_this_thread
();
#if defined(__WIN__)
init_signals
();
win_install_sigabrt_handler
();
#else
/* Win32 calls this in pthread_create */
if
(
my_thread_init
())
...
...
sql/stacktrace.c
View file @
b609c158
...
...
@@ -341,7 +341,7 @@ void set_exception_pointers(EXCEPTION_POINTERS *ep)
#define SYMOPT_NO_PROMPTS 0
#endif
void
print_stacktrace
(
gptr
unused1
,
ulong
unused2
)
void
print_stacktrace
(
uchar
*
unused1
,
ulong
unused2
)
{
HANDLE
hProcess
=
GetCurrentProcess
();
HANDLE
hThread
=
GetCurrentThread
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment