Commit 0e4f418c authored by J. Alexander Treuman's avatar J. Alexander Treuman

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
parent 89eca9ee
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment