Skip to content

Commit 2fccb05

Browse files
committed
Increase piped_processt buffer size on Windows
To reduce the likelihood of exceeding its capacity.
1 parent 12ef9e7 commit 2fccb05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/piped_process.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@
9999
# include "piped_process.h"
100100
# include "string_utils.h"
101101

102+
#ifdef _WIN32
103+
# define BUFSIZE (1024 * 64)
104+
#else
102105
# define BUFSIZE 2048
106+
#endif
103107

104108
#ifdef _WIN32
105109
/// This function prepares a single wide string for the windows command

0 commit comments

Comments
 (0)