Don't send the main process SIGUSR1 until we've sent the decode process

SIGSTOP.

git-svn-id: https://svn.musicpd.org/mpd/trunk@6486 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-06-04 22:36:39 +00:00
parent 89eca9eebc
commit 0e4f418c29

View File

@ -83,11 +83,12 @@ static void quitDecode(PlayerControl * pc, DecoderControl * dc)
pc->play = 0;
pc->stop = 0;
pc->pause = 0;
kill(getppid(), SIGUSR1);
pid = decode_pid;
if (pid > 0)
kill(pid, SIGSTOP);
kill(getppid(), SIGUSR1);
}
static int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af)