- Timestamp:
- Jan 7, 2011, 2:51:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1138 r1139 1774 1774 pb_rm_rf("$ENV{'PBBUILDDIR'}/$odir"); 1775 1775 } 1776 unlink("$ENV{'PBDESTDIR'}/pbscript.$$") if ($cmt =~ /^V[ME]/); 1777 1776 1778 pb_log(2,"Before halt, vmexist: $vmexist, vmpid: $vmpid\n"); 1777 1779 if ((! $vmexist) && ($cmt =~ /^VM/)) { … … 2196 2198 2197 2199 my ($vmexist,$vmpid) = (undef,undef); 2200 my $pm = new Parallel::ForkManager($pbparallel) if (defined $pbparallel); 2198 2201 2199 2202 foreach my $v (@$v) { 2203 $pm->start and next if (defined $pbparallel); 2200 2204 # Prepare the script to be executed on the VM/VE 2201 2205 # in $ENV{'PBDESTDIR'}/pbscript.$$ … … 2298 2302 ($vmexist,$vmpid) = pb_launchv($vtype,$v,0); 2299 2303 2304 2300 2305 if ($vtype eq "vm") { 2301 2306 # Skip that VM if it something went wrong 2302 next if (($vmpid == 0) && ($vmexist == 0)); 2307 if (($vmpid == 0) && ($vmexist == 0)) { 2308 $pm->finish if (defined $pbparallel); 2309 next; 2310 } 2303 2311 } else { 2304 2312 # VE … … 2310 2318 pb_log(2,"Calling send2target $vtype,$v,$vmexist,$vmpid\n"); 2311 2319 pb_send2target(uc($vtype).$action,"$v",$vmexist,$vmpid); 2320 $pm->finish if (defined $pbparallel); 2321 } 2322 if (defined $pbparallel) { 2323 $pm->wait_all_children; 2312 2324 } 2313 2325 }
Note:
See TracChangeset
for help on using the changeset viewer.