An additional command-line switch could be handy, though.
open FIFO, '+<', $fifo_name or die "Cannot open $fifo_name: $!";
my %running = ();
-my $max = 1; # FIXME
+my $max = $BEX::Config::max_parallel_jobs;
while (%running || @machines) {
if (@machines && keys %running < $max) {
# queue - obtain exclusive access to the whole queue
our $locking_scheme = 'host';
+# Maximum number of simultaneously running jobs in `bprun'
+our $max_parallel_jobs = 5;
+
# Various utility functions
sub parse_machine_list(@);