Changeset 28227
- Timestamp:
- Jun 4, 2010, 2:58:02 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_finish.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r28046 r28227 275 275 print STDERR "Unable to perform $command error code: $error_code\n"; 276 276 $request_fault = $error_code >> 8; 277 stop_request_and_exit($req_id, $request_fault); 277 278 } 278 279 } … … 291 292 print STDERR "Unable to perform $command error code: $error_code\n"; 292 293 $request_fault = $error_code >> 8; 293 # fall through to stop the request294 stop_request_and_exit($req_id, $request_fault); 294 295 } 295 296 } 296 297 # set the request's state to stop 297 298 { 298 my $command = "$pstamptool -updatereq -req_id $req_id -set_state stop -set_fault $request_fault";299 my $command = "$pstamptool -updatereq -req_id $req_id -set_state stop"; 299 300 $command .= " -dbname $dbname" if $dbname; 300 301 $command .= " -dbserver $dbserver" if $dbserver; … … 309 310 310 311 sub stop_request_and_exit { 312 # this no longer stops the request. Arguably this should be an old fashioned mydie 311 313 my $req_id = shift; 312 314 my $fault = shift; 313 315 314 my $command = "$pstamptool -updatereq -req_id $req_id -set_ state stop -set_fault $fault";316 my $command = "$pstamptool -updatereq -req_id $req_id -set_fault $fault"; 315 317 $command .= " -dbname $dbname" if $dbname; 316 318 $command .= " -dbserver $dbserver" if $dbserver;
Note:
See TracChangeset
for help on using the changeset viewer.
