Permalink
Browse files

rmcd: fixed bug where files would not be loaded if the rmcd process w…

…as already running
  • Loading branch information...
1 parent b637cdb commit b1d99e512dc7c45b23816ffa2befbf3986f35d34 @trapd00r committed Sep 12, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 rmcd
View
7 rmcd
@@ -301,6 +301,9 @@ sub load {
s;.+/(.+);$1;;
print "Adding \033[1m$1\033[0m\n";
}
+
+ @toload = map{"'$_'"} @toload;
+
open(my $fh, '>', $fifo) or die("Can not open $fifo: $!");
print $fh "load @toload\n";
print $fh "loop $opt_repeat\n";
@@ -312,6 +315,10 @@ sub load {
print $plist $listing;
close($plist);
+ open(my $state, '>', $rmcd_state) or die("Can not open $rmcd_state: $!");
+ print $state "Random: $opt_shuffle Repeat: $opt_repeat\n";
+ close($state);
+
exit(0);
}

0 comments on commit b1d99e5

Please sign in to comment.