}
if (writer->trace_dir_fd > 0) {
- close(writer->trace_dir_fd);
+ if (close(writer->trace_dir_fd)) {
+ perror("close");
+ abort();
+ }
}
if (writer->metadata_fd > 0) {
- close(writer->metadata_fd);
+ if (close(writer->metadata_fd)) {
+ perror("close");
+ abort();
+ }
}
if (writer->environment) {