Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-SMF
Commits
1bcafc95
Commit
1bcafc95
authored
Dec 15, 2022
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(exit): catching SIGTERM
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@openairinterface.org
>
parent
27e6e4b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/oai_smf/main.cpp
src/oai_smf/main.cpp
+2
-5
No files found.
src/oai_smf/main.cpp
View file @
1bcafc95
...
@@ -104,11 +104,8 @@ int main(int argc, char** argv) {
...
@@ -104,11 +104,8 @@ int main(int argc, char** argv) {
Logger
::
init
(
"smf"
,
Options
::
getlogStdout
(),
Options
::
getlogRotFilelog
());
Logger
::
init
(
"smf"
,
Options
::
getlogStdout
(),
Options
::
getlogRotFilelog
());
Logger
::
smf_app
().
startup
(
"Options parsed"
);
Logger
::
smf_app
().
startup
(
"Options parsed"
);
struct
sigaction
sigIntHandler
;
std
::
signal
(
SIGTERM
,
my_app_signal_handler
);
sigIntHandler
.
sa_handler
=
my_app_signal_handler
;
std
::
signal
(
SIGINT
,
my_app_signal_handler
);
sigemptyset
(
&
sigIntHandler
.
sa_mask
);
sigIntHandler
.
sa_flags
=
0
;
sigaction
(
SIGINT
,
&
sigIntHandler
,
NULL
);
// Config
// Config
smf_cfg
.
load
(
Options
::
getlibconfigConfig
());
smf_cfg
.
load
(
Options
::
getlibconfigConfig
());
...
...
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