IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28902


Ignore:
Timestamp:
Aug 11, 2010, 1:50:40 PM (16 years ago)
Author:
watersc1
Message:

Fixed missing "exit" call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/detectability_respond.pl

    r28818 r28902  
    308308}
    309309close(WISDOM);
     310
     311# If there is anything that needs to be updated, create the update request list, and then exit the program.
    310312my $exit_code = 0;
    311313my $update_request_file = "${workdir}/update_request.dat";
     
    316318            $exit_code = 25;
    317319        }
     320        elsif ($fault != 0) {
     321            $exit_code = 21;
     322        }
    318323        my $update_request = join ' ', @{ $update_request{$images}{$fault} };
    319324        print UPDATE_REQUEST "$update_request\n";
     
    321326}
    322327close(UPDATE_REQUEST);
    323 # if ($exit_code != 0) {
    324 #     exit($exit_code);
    325 # }
     328if ($exit_code != 0) {
     329    exit($exit_code);
     330}
    326331
    327332# This duplicates stuff returned by PSTAMP, but my thought is to convert that ---^ into a conditional, in which I read
     
    338343    }
    339344}
    340 #exit(10);
    341345
    342346# run ppCoord and psphotForced to calculate the required data.
Note: See TracChangeset for help on using the changeset viewer.