Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7df0d3b7
Commit
7df0d3b7
authored
Aug 06, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/SignalMonitor: make SignalMonitorFinish() noexcept
parent
fdd101c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
SignalMonitor.cxx
src/event/SignalMonitor.cxx
+2
-2
SignalMonitor.hxx
src/event/SignalMonitor.hxx
+1
-1
No files found.
src/event/SignalMonitor.cxx
View file @
7df0d3b7
...
@@ -147,7 +147,7 @@ x_sigaction(int signum, const struct sigaction &act)
...
@@ -147,7 +147,7 @@ x_sigaction(int signum, const struct sigaction &act)
#endif
#endif
void
void
SignalMonitorFinish
()
SignalMonitorFinish
()
noexcept
{
{
#ifdef USE_SIGNALFD
#ifdef USE_SIGNALFD
std
::
fill_n
(
signal_handlers
,
MAX_SIGNAL
,
nullptr
);
std
::
fill_n
(
signal_handlers
,
MAX_SIGNAL
,
nullptr
);
...
@@ -159,7 +159,7 @@ SignalMonitorFinish()
...
@@ -159,7 +159,7 @@ SignalMonitorFinish()
for
(
unsigned
i
=
0
;
i
<
MAX_SIGNAL
;
++
i
)
{
for
(
unsigned
i
=
0
;
i
<
MAX_SIGNAL
;
++
i
)
{
if
(
signal_handlers
[
i
])
{
if
(
signal_handlers
[
i
])
{
x_sigaction
(
i
,
sa
);
sigaction
(
i
,
&
sa
,
nullptr
);
signal_handlers
[
i
]
=
nullptr
;
signal_handlers
[
i
]
=
nullptr
;
}
}
}
}
...
...
src/event/SignalMonitor.hxx
View file @
7df0d3b7
...
@@ -42,7 +42,7 @@ SignalMonitorInit(EventLoop &loop);
...
@@ -42,7 +42,7 @@ SignalMonitorInit(EventLoop &loop);
* Deinitialise the signal monitor subsystem.
* Deinitialise the signal monitor subsystem.
*/
*/
void
void
SignalMonitorFinish
();
SignalMonitorFinish
()
noexcept
;
/**
/**
* Register a handler for the specified signal. The handler will be
* Register a handler for the specified signal. The handler will be
...
...
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