Ignore:
Timestamp:
Apr 3, 2008, 1:18:55 AM (12 years ago)
Author:
bruno
Message:

setupvm seems better now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Base.pm

    r344 r347  
    832832#system("$cmd 2>&1 > $ENV{'PBTMP'}/system.log");
    833833system($cmd);
    834 if ($? == -1) {
     834my $res = $?;
     835if ($res == -1) {
    835836    pb_log(0,"failed to execute ($cmd) : $!\n");
    836837    pb_display_file("$ENV{'PBTMP'}/system.log");
    837 } elsif ($? & 127) {
     838} elsif ($res & 127) {
    838839    pb_log(0, "child ($cmd) died with signal ".($? & 127).", ".($? & 128) ? 'with' : 'without'." coredump\n");
    839840    pb_display_file("$ENV{'PBTMP'}/system.log");
    840 } elsif ($? == 0) {
     841} elsif ($res == 0) {
    841842    pb_log(0,"OK\n");
    842843} else {
     
    844845    pb_display_file("$ENV{'PBTMP'}/system.log");
    845846}
     847return($res);
    846848}
    847849
Note: See TracChangeset for help on using the changeset viewer.