Changeset 20219
- Timestamp:
- Oct 17, 2008, 9:39:31 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_finish.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r20114 r20219 74 74 print STDERR "output fileset directory $out_dir does not exist\n"; 75 75 76 # XXX TODO: if this fails fault the request so we pstamp_finish 77 78 mkdir $out_dir or die "cannot create output directory $out_dir"; 76 if (!mkdir $out_dir) { 77 print STDERR "cannot create output directory $out_dir"; 78 stop_request($req_id, $PS_EXIT_UNKNOWN_ERROR, $dbname); 79 } 80 79 81 80 82 } elsif (! -d $out_dir ) { 81 83 # XXX TODO: fault the request so we pstamp_finish doesn't keep trying to process the 82 84 # request 83 die "output fileset directory $out_dir exists but is not a directory"; 85 print STDERR "output fileset directory $out_dir exists but is not a directory"; 86 stop_request($req_id, $PS_EXIT_UNKNOWN_ERROR, $dbname); 84 87 } 85 88 … … 87 90 print STDERR "request file $req_file is missing\n"; 88 91 stop_request($req_id, $PS_EXIT_CONFIG_ERROR, $dbname); 89 exit $PS_EXIT_CONFIG_ERROR;90 92 } 91 93 … … 98 100 print STDERR "failed to read request_file $req_file" ; 99 101 stop_request($req_id, $PS_EXIT_CONFIG_ERROR, $dbname); 100 exit $PS_EXIT_CONFIG_ERROR;101 102 } 102 103 … … 231 232 print STDERR "Unable to perform $command error code: $error_code\n"; 232 233 $request_fault = $error_code >> 8; 234 # fall through to stop the request 233 235 } 234 236 } … … 258 260 die("Unable to perform $command error code: $error_code"); 259 261 } 262 exit $fault; 260 263 } 261 264
Note:
See TracChangeset
for help on using the changeset viewer.
