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
72e06e05
Commit
72e06e05
authored
Apr 13, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some misc chld signal handling for update process
git-svn-id:
https://svn.musicpd.org/mpd/trunk@737
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
1f0f1b28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
TODO
TODO
+3
-0
directory.c
src/directory.c
+3
-3
No files found.
TODO
View file @
72e06e05
...
...
@@ -8,6 +8,9 @@
that don't exist in the db, but do exit in the fs (i.e.
calling updated on a newly created file).
n) mpd command for rereading db
o) rewrite update functions to indicate if something was updated, then
when update process returns, indicate wheater db was updated
and should be reread by parent process
2) crosslink "list" stuff, for example, artists are crosslinked to alubms and
vice versa, this way you can do list album artists or list artist albums, this
...
...
src/directory.c
View file @
72e06e05
...
...
@@ -120,7 +120,9 @@ void directory_sigChldHandler(int pid, int status) {
"non-TERM signal: %i
\n
"
,
WTERMSIG
(
status
));
}
else
if
(
WEXITSTATUS
(
status
)
==
EXIT_SUCCESS
)
{
else
if
(
!
WIFSIGNALED
(
status
)
&&
WEXITSTATUS
(
status
)
==
EXIT_SUCCESS
)
{
DEBUG
(
"direcotry_sigChldHandler: "
"updated db succesffully
\n
"
);
directory_reReadDB
=
1
;
...
...
@@ -150,8 +152,6 @@ int updateInit(FILE * fp, List * pathList) {
directory_updatePid
=
fork
();
if
(
directory_updatePid
==
0
)
{
/* child */
struct
sigaction
sa
;
clearPlayerPid
();
unblockSignals
();
...
...
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