fd = open(filename.c_str(), O_RDONLY);
if (fd == -1) {
perror(filename.c_str());
- exit(1);
+ abort();
}
// We want readahead. (Ignore errors.)
int ret = pread(fd, &str[offset], frame.size - offset, frame.offset + offset);
if (ret <= 0) {
perror("pread");
- exit(1);
+ abort();
}
offset += ret;