Skip to content

Commit

Permalink
errno
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Sep 27, 2024
1 parent 9e5f498 commit 4729914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prover_slow.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std
struct stat buffer;

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

0 comments on commit 4729914

Please sign in to comment.