Skip to content

Commit

Permalink
filter out EINTR thanks arvid
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Sep 27, 2024
1 parent 4512a6c commit 9e5f498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prover_slow.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std
if (shutdown_file_path!="") {
struct stat buffer;

if (stat (shutdown_file_path.c_str(), &buffer) != 0) {
int statrst = stat(shutdown_file_path.c_str(), &buffer);
if ((statrst != 0) && (statrst != EINTR)) {
// shutdown file doesn't exist, abort out
return {};
}
Expand Down

0 comments on commit 9e5f498

Please sign in to comment.