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_reject_exp.pl

    r10537 r10700  
    215215}
    216216
    217 END { system("sync") == 0 or die "failed to execute sync: $!" }
     217END {
     218    my $status = $?;
     219    system("sync") == 0
     220        or die "failed to execute sync: $!" ;
     221    $? = $status;
     222}
    218223
    219224# Retrieve the requested rejection limit, dying if not extant
Note: See TracChangeset for help on using the changeset viewer.