Skip to content

Commit f343922

Browse files
committed
Add sleep time between piped_processt::send retries on Windows
To give the sub process more time to read from the pipe.
1 parent cecac4d commit f343922

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/piped_process.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ piped_processt::send_responset piped_processt::send(const std::string &message)
372372
break;
373373
// Give the sub-process chance to read the waiting message(s).
374374
FlushFileBuffers(child_std_IN_Wr);
375+
Sleep(1 << send_attempts);
375376
}
376377
INVARIANT(
377378
message_size == bytes_written,

0 commit comments

Comments
 (0)