Skip to content

Commit 9e5f498

Browse files
committed
filter out EINTR thanks arvid
1 parent 4512a6c commit 9e5f498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/prover_slow.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std
108108
if (shutdown_file_path!="") {
109109
struct stat buffer;
110110

111-
if (stat (shutdown_file_path.c_str(), &buffer) != 0) {
111+
int statrst = stat(shutdown_file_path.c_str(), &buffer);
112+
if ((statrst != 0) && (statrst != EINTR)) {
112113
// shutdown file doesn't exist, abort out
113114
return {};
114115
}

0 commit comments

Comments
 (0)