Skip to content

Commit f7e4440

Browse files
committed
Update comment on timeout in windows
Add comment on timeout in windows.
1 parent cec11e1 commit f7e4440

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/util/piped_process.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ piped_processt::piped_processt(const std::vector<std::string> &commandvec)
144144
PIPE_TYPE_BYTE | PIPE_NOWAIT, // Bytes and non-blocking
145145
PIPE_UNLIMITED_INSTANCES, // Probably doesn't matter
146146
BUFSIZE,
147-
BUFSIZE, // Output and input bufffer sizes
148-
0, // Timeout in ms, 0 = use system default
147+
BUFSIZE, // Output and input bufffer sizes
148+
0, // Timeout in ms, 0 = use system default
149+
// This is the timeout that WaitNamedPipe functions will wait to try
150+
// and connect before aborting if no instance of the pipe is available.
151+
// In practice this is not used since we connect immediately and only
152+
// use one instance (no waiting for a free instance).
149153
&sec_attr); // For inheritance by child
150154
if(child_std_IN_Rd == INVALID_HANDLE_VALUE)
151155
{

0 commit comments

Comments
 (0)