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
9774768b
Commit
9774768b
authored
Jul 18, 2006
by
J. Alexander Treuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize sigaction.sa_mask to an empty set in a few places we forgot to
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4400
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
ec19a53f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
sig_handlers.c
src/sig_handlers.c
+3
-0
signal_check.c
src/signal_check.c
+1
-0
No files found.
src/sig_handlers.c
View file @
9774768b
...
...
@@ -125,6 +125,7 @@ void masterInitSigHandlers() {
struct
sigaction
sa
;
sa
.
sa_flags
=
0
;
sigemptyset
(
&
sa
.
sa_mask
);
sa
.
sa_handler
=
SIG_IGN
;
while
(
sigaction
(
SIGPIPE
,
&
sa
,
NULL
)
<
0
&&
errno
==
EINTR
);
sa
.
sa_handler
=
masterChldSigHandler
;
...
...
@@ -141,6 +142,7 @@ void initSigHandlers() {
struct
sigaction
sa
;
sa
.
sa_flags
=
0
;
sigemptyset
(
&
sa
.
sa_mask
);
sa
.
sa_handler
=
SIG_IGN
;
while
(
sigaction
(
SIGPIPE
,
&
sa
,
NULL
)
<
0
&&
errno
==
EINTR
);
sa
.
sa_handler
=
chldSigHandler
;
...
...
@@ -165,6 +167,7 @@ void setSigHandlersForDecoder() {
finishSigHandlers
();
sa
.
sa_flags
=
0
;
sigemptyset
(
&
sa
.
sa_mask
);
sa
.
sa_handler
=
SIG_IGN
;
while
(
sigaction
(
SIGHUP
,
&
sa
,
NULL
)
<
0
&&
errno
==
EINTR
);
while
(
sigaction
(
SIGINT
,
&
sa
,
NULL
)
<
0
&&
errno
==
EINTR
);
...
...
src/signal_check.c
View file @
9774768b
...
...
@@ -33,6 +33,7 @@ static void __set_signal_handler(int sig, void (* handler)(int))
{
struct
sigaction
act
;
act
.
sa_flags
=
0
;
sigemptyset
(
&
act
.
sa_mask
);
act
.
sa_handler
=
handler
;
while
(
sigaction
(
sig
,
&
act
,
NULL
)
&&
errno
==
EINTR
);
}
...
...
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