bomb if execution of razor-check failed (as opposed to sucessful
execution with a failure exit code).
if ($run) {
$status = system("razor-check < $msg");
- if (WIFEXITED($status) and WEXITSTATUS($status) == 0) {
+ if (not WIFEXITED($status)) {
+ err(&EX_TEMPFAIL, "Failed to run razor-check < $msg");
+ } elsif (WEXITSTATUS($status) == 0) {
return 1;
} else {
return 0;