IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

preserve exit status in END block

File:
1 edited

Legend:

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

    r10297 r10700  
    158158}
    159159
    160 END { system("sync") == 0 or die "failed to execute sync: $!" }
     160END {
     161    my $status = $?;
     162    system("sync") == 0
     163        or die "failed to execute sync: $!" ;
     164    $? = $status;
     165}
Note: See TracChangeset for help on using the changeset viewer.