Skip to content

Commit

Permalink
rmcd: fixed bug where files would not be loaded if the rmcd process w…
Browse files Browse the repository at this point in the history
…as already running
  • Loading branch information
trapd00r committed Sep 12, 2010
1 parent b637cdb commit b1d99e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rmcd
Expand Up @@ -301,6 +301,9 @@ sub load {
s;.+/(.+);$1;; s;.+/(.+);$1;;
print "Adding \033[1m$1\033[0m\n"; print "Adding \033[1m$1\033[0m\n";
} }

@toload = map{"'$_'"} @toload;

open(my $fh, '>', $fifo) or die("Can not open $fifo: $!"); open(my $fh, '>', $fifo) or die("Can not open $fifo: $!");
print $fh "load @toload\n"; print $fh "load @toload\n";
print $fh "loop $opt_repeat\n"; print $fh "loop $opt_repeat\n";
Expand All @@ -312,6 +315,10 @@ sub load {
print $plist $listing; print $plist $listing;
close($plist); 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); exit(0);
} }


Expand Down

0 comments on commit b1d99e5

Please sign in to comment.