Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
623c9055
Commit
623c9055
authored
Jul 23, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(UActivator): сделал вывод stack trace и для сигнала SIGABRT.
parent
e318a9a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
UniSetActivator.cc
src/ObjectRepository/UniSetActivator.cc
+5
-9
No files found.
src/ObjectRepository/UniSetActivator.cc
View file @
623c9055
...
...
@@ -86,6 +86,8 @@ using namespace std;
Если не включён, то выводиться в cerr.
Сам обработчик только выводит trace и завершает работу, восстановив обработчик SIGSEGV по умолчанию,
без какой-либо специальной обработки завершения.
Помимо этого, вывод stack trace сделан и для сигнала SIGABRT
*/
// ------------------------------------------------------------------------------------------
static
std
::
shared_ptr
<
UniSetActivator
>
g_act
;
...
...
@@ -233,18 +235,12 @@ static void activator_terminate( int signo )
ulogsys
<<
"****** TERMINATE SIGNAL="
<<
signo
<<
endl
<<
flush
;
// прежде чем вызывать notify_one следует освободить mutex...(вроде как)
{
std
::
unique_lock
<
std
::
mutex
>
locker
(
g_termmutex
);
if
(
g_term
)
return
;
g_term
=
true
;
g_term
=
true
;
}
if
(
signo
==
SIGABRT
)
printStackTrace
();
ulogsys
<<
"****** TERMINATE NOTIFY...(signo="
<<
signo
<<
")"
<<
endl
<<
flush
;
g_term
=
true
;
g_signo
=
signo
;
g_termevent
.
notify_one
();
}
...
...
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