foreach my $cl (sort keys %classes) {
substep_finish("/$cl", $classes{$cl} || 'pass');
# (if there are no fds of this class, maybe they were all closed)
+ $classes{$cl} = 'reported';
}
logm("audit complete...");
}
+END {
+ foreach my $cl (sort keys %classes) {
+ my $st = $classes{$cl};
+ next if $st eq 'reported';
+ logm("substep not reported, at exit: $cl, $st");
+ substep_finish("/$cl", 'blocked');
+ $? = -1; # in case we were trying to succeed
+ }
+}
+
#----- administrivia, main program, etc. -----
sub mode_create () {