[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH 3/4] Flush and Disconnect pipe clients



From: Owen Smith <owen.smith@xxxxxxxxxx>

Named pipes should be flushed and disconnected before closed.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/monitor/monitor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 6068f5c..52a37f8 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -491,6 +491,8 @@ PipeThread(
 
     CloseHandle(Overlapped.hEvent);
 
+    FlushFileBuffers(Pipe->Pipe);
+    DisconnectNamedPipe(Pipe->Pipe);
     CloseHandle(Pipe->Pipe);
     CloseHandle(Pipe->Thread);
     free(Pipe);
-- 
2.8.3


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.