aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-07 01:06:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-07 01:06:31 +1300
commit635f9222837868687b64e7de2313cc7f1311182e (patch)
tree29462a59518cabf681c38c8cdb5baff36b7932bb
parentAdd a Makefile (diff)
downloadmpdlrc-635f9222837868687b64e7de2313cc7f1311182e.tar.gz
mpdlrc-635f9222837868687b64e7de2313cc7f1311182e.zip
Wait on killed processes
-rwxr-xr-xbin/mpdlrc2
1 files changed, 2 insertions, 0 deletions
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;
}
}