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
82474d91
Commit
82474d91
authored
Dec 13, 2010
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Plain Diff
Automerge 5.1-bugteam => 5.5-bugteam
parents
92c303ce
7c36c7e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
dbug/dbug.c
dbug/dbug.c
+19
-0
include/my_dbug.h
include/my_dbug.h
+2
-1
No files found.
dbug/dbug.c
View file @
82474d91
...
...
@@ -2377,6 +2377,25 @@ void _db_flush_()
}
#ifndef __WIN__
void
_db_suicide_
()
{
int
retval
;
sigset_t
new_mask
;
sigfillset
(
&
new_mask
);
fprintf
(
stderr
,
"SIGKILL myself
\n
"
);
fflush
(
stderr
);
retval
=
kill
(
getpid
(),
SIGKILL
);
assert
(
retval
==
0
);
retval
=
sigsuspend
(
&
new_mask
);
fprintf
(
stderr
,
"sigsuspend returned %d errno %d
\n
"
,
retval
,
errno
);
assert
(
FALSE
);
/* With full signal mask, we should never return here. */
}
#endif
/* ! __WIN__ */
void
_db_lock_file_
()
{
CODE_STATE
*
cs
;
...
...
include/my_dbug.h
View file @
82474d91
...
...
@@ -132,7 +132,8 @@ extern const char* _db_get_func_(void);
#ifdef __WIN__
#define DBUG_SUICIDE() DBUG_ABORT()
#else
#define DBUG_SUICIDE() (_db_flush_(), kill(getpid(), SIGKILL), pause())
extern
void
_db_suicide_
();
#define DBUG_SUICIDE() (_db_flush_(), _db_suicide_())
#endif
#else
/* No debugger */
...
...
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