- Timestamp:
- Sep 10, 2013, 7:52:20 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1786 r1792 2714 2714 } else { 2715 2715 # Is the SSH port free? if not kill the existing process using it after a build timeout period 2716 my $vmssh= pb_check_ps($tmpcmd,$vmm);2716 my ($vmssh,$void) = pb_check_ps($tmpcmd,$vmm); 2717 2717 if ($vmssh) { 2718 2718 my $buildtm = $ENV{'PBVMTMOUT'}; … … 2724 2724 2725 2725 sleep $buildtm; 2726 pb_log(0,"WARNING: Killing the process ($vmssh) using port $ nport(previous failed VM ?)\n");2726 pb_log(0,"WARNING: Killing the process ($vmssh) using port $void (previous failed VM ?)\n"); 2727 2727 kill 15,$vmssh; 2728 2728 # Let it time to exit … … 2732 2732 # Using system allows to kill it externaly if needed,sosupport that in the call 2733 2733 pb_system("sleep $ENV{'PBVMTMOUT'}","Waiting $ENV{'PBVMTMOUT'} s for VM $v to come up","mayfail"); 2734 $vmpid= pb_check_ps($tmpcmd,$vmm);2734 ($vmpid,$void) = pb_check_ps($tmpcmd,$vmm); 2735 2735 pb_log(0,"VM $vmm launched (pid $vmpid)\n"); 2736 2736 } … … 4199 4199 last; 4200 4200 } 4201 # Maintain compatibility by just returning PID if no port 4202 return($vmexist,$vmport) if (defined $vmport); 4203 return($vmexist); 4201 return($vmexist,$vmport); 4204 4202 } 4205 4203
Note:
See TracChangeset
for help on using the changeset viewer.