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
96814397
Commit
96814397
authored
Jan 03, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sig_handlers: disable on WIN32
WIN32 doesn't have POSIX signals. Disable the code. For a complete port, we will have to implement the WIN32 equivalent.
parent
2cf96abc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
sig_handlers.c
src/sig_handlers.c
+7
-0
No files found.
src/sig_handlers.c
View file @
96814397
...
...
@@ -18,6 +18,9 @@
*/
#include "sig_handlers.h"
#ifndef WIN32
#include "log.h"
#include "main.h"
#include "event_pipe.h"
...
...
@@ -52,8 +55,11 @@ handle_reload_event(void)
cycle_log_files
();
}
#endif
void
initSigHandlers
(
void
)
{
#ifndef WIN32
struct
sigaction
sa
;
sa
.
sa_flags
=
0
;
...
...
@@ -68,4 +74,5 @@ void initSigHandlers(void)
event_pipe_register
(
PIPE_EVENT_RELOAD
,
handle_reload_event
);
sa
.
sa_handler
=
reload_signal_handler
;
x_sigaction
(
SIGHUP
,
&
sa
);
#endif
}
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