Commit 8ce50f2b authored by Kevin Modzelewski's avatar Kevin Modzelewski

Oh, no this was the issue: we were writing out valid-looking but corrupt pyc...

Oh, no this was the issue: we were writing out valid-looking but corrupt pyc files if the parser crashed.  Now leave the files as corrupt if the parser crashes
parent 58e151e5
......@@ -895,11 +895,12 @@ static void _reparse(const char* fn, const std::string& cache_fn) {
fwrite(buf, 1, nread, cache_fp);
}
int code = pclose(parser);
assert(code == 0);
fseek(cache_fp, checksum_start, SEEK_SET);
fwrite(&bytes_written, 1, CHECKSUM_LENGTH, cache_fp);
int code = pclose(parser);
assert(code == 0);
fclose(cache_fp);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment