diff options
Diffstat (limited to 'lib/stream-windows.c')
-rw-r--r-- | lib/stream-windows.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stream-windows.c b/lib/stream-windows.c index 637920b10..195001441 100644 --- a/lib/stream-windows.c +++ b/lib/stream-windows.c @@ -183,6 +183,9 @@ windows_close(struct stream *stream) /* Disconnect the named pipe in case it was created from a passive stream. */ if (s->server) { + /* Flush the pipe to allow the client to read the pipe's contents + * before disconnecting. */ + FlushFileBuffers(s->fd); DisconnectNamedPipe(s->fd); } CloseHandle(s->fd); |