aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-04 22:36:39 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-04 22:36:39 +0000
commit0e4f418c29fbc25c6fbd0e9c2e057e315769a352 (patch)
tree9c63a0bcb29e37d87a64763d6572c9a8093ca8d2 /src
parent89eca9eebcec92efaf7bf5ecada3af4fbf540c9f (diff)
downloadmpd-0e4f418c29fbc25c6fbd0e9c2e057e315769a352.tar.gz
mpd-0e4f418c29fbc25c6fbd0e9c2e057e315769a352.tar.xz
mpd-0e4f418c29fbc25c6fbd0e9c2e057e315769a352.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/decode.c3
1 files changed, 2 insertions, 1 deletions
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)