Permalink
Browse files

Force unload before loading / reloading mpd

In case the old process hasn't died, zombies procs may tie up the listen port
  • Loading branch information...
1 parent 8587d63 commit 7d8e3e292529cb999989e781a7461efcf6e66af1 @dreamcat4 committed Feb 26, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 MediaKeysApplication.m
@@ -24,6 +24,7 @@ void mpd_start()
if( ! mpd_started() )
{
int rv;
+ system("/usr/bin/sudo /opt/local/bin/port unload mpd");
rv=system("/usr/bin/sudo /opt/local/bin/port load mpd");
printf("%i\n",rv);

0 comments on commit 7d8e3e2

Please sign in to comment.