From 0e4f418c29fbc25c6fbd0e9c2e057e315769a352 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Mon, 4 Jun 2007 22:36:39 +0000 Subject: 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 --- src/decode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/decode.c b/src/decode.c index ce94833e8..5a907ec85 100644 --- a/src/decode.c +++ b/src/decode.c @@ -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) -- cgit v1.2.3