Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
7e9057d0
Commit
7e9057d0
authored
7 years ago
by
rdoost
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added SIGPIPE to the list of signals to be handled by main thread
parent
e0156a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
common/utils/itti/signals.c
common/utils/itti/signals.c
+6
-3
No files found.
common/utils/itti/signals.c
View file @
7e9057d0
...
...
@@ -68,6 +68,7 @@ int signal_mask(void)
sigaddset
(
&
set
,
SIGABRT
);
sigaddset
(
&
set
,
SIGSEGV
);
sigaddset
(
&
set
,
SIGINT
);
sigaddset
(
&
set
,
SIGPIPE
);
if
(
sigprocmask
(
SIG_BLOCK
,
&
set
,
NULL
)
<
0
)
{
perror
(
"sigprocmask"
);
...
...
@@ -89,12 +90,13 @@ int signal_handle(int *end)
sigaddset
(
&
set
,
SIGABRT
);
sigaddset
(
&
set
,
SIGSEGV
);
sigaddset
(
&
set
,
SIGINT
);
sigaddset
(
&
set
,
SIGPIPE
);
/*
if (sigprocmask(SIG_BLOCK, &set, NULL) < 0) {
perror ("sigprocmask");
return -1;
}
*/
/* Block till a signal is received.
* NOTE: The signals defined by set are required to be blocked at the time
* of the call to sigwait() otherwise sigwait() is not successful.
...
...
@@ -125,12 +127,13 @@ int signal_handle(int *end)
backtrace_handle_signal
(
&
info
);
break
;
case
SIGPIPE
:
case
SIGINT
:
printf
(
"Received SIGINT
\n
"
);
itti_send_terminate_message
(
TASK_UNKNOWN
);
*
end
=
1
;
break
;
default:
SIG_ERROR
(
"Received unknown signal %d
\n
"
,
info
.
si_signo
);
break
;
...
...
This diff is collapsed.
Click to expand it.
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