Really slow named pipes

Eric Pouech pouech-eric at wanadoo.fr
Mon Aug 25 13:39:52 CDT 2003


> Nope ;) I think there was a problem when you tried to attach that :-)
oops (took the file from the wrong dir...)

A+
-- 
Eric Pouech
-------------- next part --------------
Index: dlls/kernel/sync.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/kernel/sync.c,v
retrieving revision 1.36
diff -u -r1.36 sync.c
--- dlls/kernel/sync.c	18 Aug 2003 20:03:00 -0000	1.36
+++ dlls/kernel/sync.c	25 Aug 2003 18:38:18 -0000
@@ -1162,7 +1162,7 @@
     /* from completion sakeness, I think system resources might be exhausted before this happens !! */
     if (hr == INVALID_HANDLE_VALUE) return FALSE;
 
-    hw = CreateFileA(name, GENERIC_WRITE, 0, sa, OPEN_EXISTING, 0, 0);
+    hw = CreateFileA(name, SYNCHRONIZE|GENERIC_WRITE, 0, sa, OPEN_EXISTING, 0, 0);
     if (hw == INVALID_HANDLE_VALUE) 
     {
         CloseHandle(hr);
Index: server/named_pipe.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/server/named_pipe.c,v
retrieving revision 1.26
diff -u -r1.26 named_pipe.c
--- server/named_pipe.c	18 Jun 2003 19:45:22 -0000	1.26
+++ server/named_pipe.c	25 Aug 2003 18:38:36 -0000
@@ -627,7 +627,7 @@
     {
         server->state = ps_idle_server;
         reply->handle = alloc_handle( current->process, server,
-                                      GENERIC_READ|GENERIC_WRITE, 0 );
+                                      GENERIC_READ|GENERIC_WRITE|SYNCHRONIZE, 0 );
         server->pipe->instances++;
         release_object( server );
     }


More information about the wine-devel mailing list