From 635f9222837868687b64e7de2313cc7f1311182e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 7 Dec 2015 01:06:31 +1300 Subject: Wait on killed processes --- bin/mpdlrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/mpdlrc b/bin/mpdlrc index b127c1c..b1871a5 100755 --- a/bin/mpdlrc +++ b/bin/mpdlrc @@ -95,6 +95,8 @@ MPD: while (1) { # Something important happened; kill any running lyric processes if ($pid) { kill 'INT', $pid; + $pid = undef; + wait; } } -- cgit v1.2.3