Changeset 24601 for main/trunk/greenstone2/perllib/convertutil.pm
- Timestamp:
- 2011-09-15T18:28:42+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/convertutil.pm
r24600 r24601 176 176 $had_error = 1; 177 177 178 # for imagemagick commands that go via gs-magick.pl, need to shift exit code by 8 and then179 # convert to its signed value to get the actual exit code that imagemagick had emitted.180 my $signed_cmd_status = $command_status;181 $ signed_cmd_status >>= 8;182 $ signed_cmd_status = (($signed_cmd_status & 0x80) ? -(0x100 - ($signed_cmd_status & 0xFF)) : $signed_cmd_status);183 184 print $outhandle "Error: processing command failed. Exit status $command_status (signed value: $signed_cmd_status)\n";178 # for commands that go via an intermediate layer (like commands to imagemagick go 179 # through gs-magick.pl), need to shift exit code by 8 and then convert to its 180 # signed value to get the actual exit code that imagemagick had emitted. 181 $command_status >>= 8; 182 $command_status = (($command_status & 0x80) ? -(0x100 - ($command_status & 0xFF)) : $command_status); 183 184 print $outhandle "Error: processing command failed. Exit status $command_status\n"; 185 185 186 186 if ($verbosity >= 3) {
Note:
See TracChangeset
for help on using the changeset viewer.