fix some misc chld signal handling for update process
git-svn-id: https://svn.musicpd.org/mpd/trunk@737 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user