IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 17, 2012, 2:17:15 PM (15 years ago)
Author:
watersc1
Message:

Fix bug where the cleanup could run multiple times without actually setting the state correctly.

File:
1 edited

Legend:

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

    r33083 r33108  
    13101310    if (@$stdout_buf == 0) {
    13111311        # Nothing to do.
     1312        $command = "$laptool -updaterun -lap_id $lap_id";
     1313        $command .= " -dbname $dbname " if defined $dbname;
     1314        $command .= " -set_state done ";
     1315        ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     1316            run(command => $command, verbose => $verbose);
     1317        unless ($success) {
     1318            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     1319            &my_die("Unable to perform laptool -updaterun: $error_code", $lap_id);
     1320        }
     1321
    13121322        return(0);
    13131323    }
Note: See TracChangeset for help on using the changeset viewer.