aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-10 17:20:17 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-10 17:20:17 +1300
commit1d62411ef217c8d2fc2125beae85887e8e26b680 (patch)
treefa2190d87c4a255c3c06838a85497fc2fa7026ee /bin
parentWait on killed processes (diff)
downloadmpdlrc-1d62411ef217c8d2fc2125beae85887e8e26b680.tar.gz
mpdlrc-1d62411ef217c8d2fc2125beae85887e8e26b680.zip
Change wait to waitpid
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mpdlrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mpdlrc b/bin/mpdlrc
index b1871a5..bd39843 100755
--- a/bin/mpdlrc
+++ b/bin/mpdlrc
@@ -95,8 +95,8 @@ MPD: while (1) {
# Something important happened; kill any running lyric processes
if ($pid) {
kill 'INT', $pid;
+ waitpid $pid, 0;
$pid = undef;
- wait;
}
}