IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2006, 3:34:19 PM (19 years ago)
Author:
jhoblitt
Message:

preserve exit status in END block

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_process_imfile.pl

    r10534 r10700  
    128128}
    129129
    130 END { system("sync") == 0 or die "failed to execute sync: $!" }
     130END {
     131    my $status = $?;
     132    system("sync") == 0
     133        or die "failed to execute sync: $!" ;
     134    $? = $status;
     135}
    131136
    132137__END__
Note: See TracChangeset for help on using the changeset viewer.