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
40bde1ea
Commit
40bde1ea
authored
6 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix/SignalHandlers: add `noexcept`
parent
4b55ed17
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
SignalHandlers.cxx
src/unix/SignalHandlers.cxx
+3
-3
SignalHandlers.hxx
src/unix/SignalHandlers.hxx
+1
-1
No files found.
src/unix/SignalHandlers.cxx
View file @
40bde1ea
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
static
constexpr
Domain
signal_handlers_domain
(
"signal_handlers"
);
static
constexpr
Domain
signal_handlers_domain
(
"signal_handlers"
);
static
void
static
void
HandleShutdownSignal
(
void
*
ctx
)
HandleShutdownSignal
(
void
*
ctx
)
noexcept
{
{
auto
&
loop
=
*
(
EventLoop
*
)
ctx
;
auto
&
loop
=
*
(
EventLoop
*
)
ctx
;
loop
.
Break
();
loop
.
Break
();
...
@@ -47,7 +47,7 @@ x_sigaction(int signum, const struct sigaction *act)
...
@@ -47,7 +47,7 @@ x_sigaction(int signum, const struct sigaction *act)
}
}
static
void
static
void
handle_reload_event
(
void
*
)
handle_reload_event
(
void
*
)
noexcept
{
{
LogDebug
(
signal_handlers_domain
,
"got SIGHUP, reopening log files"
);
LogDebug
(
signal_handlers_domain
,
"got SIGHUP, reopening log files"
);
cycle_log_files
();
cycle_log_files
();
...
@@ -76,7 +76,7 @@ SignalHandlersInit(EventLoop &loop)
...
@@ -76,7 +76,7 @@ SignalHandlersInit(EventLoop &loop)
}
}
void
void
SignalHandlersFinish
()
SignalHandlersFinish
()
noexcept
{
{
SignalMonitorFinish
();
SignalMonitorFinish
();
}
}
This diff is collapsed.
Click to expand it.
src/unix/SignalHandlers.hxx
View file @
40bde1ea
...
@@ -26,6 +26,6 @@ void
...
@@ -26,6 +26,6 @@ void
SignalHandlersInit
(
EventLoop
&
loop
);
SignalHandlersInit
(
EventLoop
&
loop
);
void
void
SignalHandlersFinish
();
SignalHandlersFinish
()
noexcept
;
#endif
#endif
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