Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
75fedd95
Commit
75fedd95
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
d0282469
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/oai-amf/main.cpp
src/oai-amf/main.cpp
+2
-6
No files found.
src/oai-amf/main.cpp
View file @
75fedd95
...
...
@@ -103,12 +103,8 @@ int main(int argc, char** argv) {
Logger
::
init
(
"AMF"
,
Options
::
getlogStdout
(),
Options
::
getlogRotFilelog
());
Logger
::
amf_app
().
startup
(
"Options parsed!"
);
// TODO: to be optimized
struct
sigaction
sigIntHandler
;
sigIntHandler
.
sa_handler
=
amf_signal_handler
;
sigemptyset
(
&
sigIntHandler
.
sa_mask
);
sigIntHandler
.
sa_flags
=
0
;
sigaction
(
SIGINT
,
&
sigIntHandler
,
NULL
);
std
::
signal
(
SIGTERM
,
amf_signal_handler
);
std
::
signal
(
SIGINT
,
amf_signal_handler
);
amf_cfg
.
load
(
Options
::
getlibconfigConfig
());
amf_cfg
.
display
();
...
...
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