Named pipe patch 1

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

 




Hi,


This patch gets us past the test at line 556 of Dan's test program at http://www.kegel.com/pipe.c

Mike


ChangeLog:
* return ERROR_PIPE_LISTENING if somebody tries to read/write a pipe server that isn't yet connected


Index: server/named_pipe.c
===================================================================
RCS file: /home/wine/wine/server/named_pipe.c,v
retrieving revision 1.23
diff -u -r1.23 named_pipe.c
--- server/named_pipe.c	17 Apr 2003 02:14:04 -0000	1.23
+++ server/named_pipe.c	5 May 2003 03:25:44 -0000
@@ -164,7 +164,10 @@
 {
     struct pipe_user *user = (struct pipe_user *)obj;
     if (user->fd) return (struct fd *)grab_object( user->fd );
-    set_error( STATUS_PIPE_DISCONNECTED );
+    if (user->state == ps_idle_server)
+        set_error( STATUS_PIPE_LISTENING );
+    else
+        set_error( STATUS_PIPE_DISCONNECTED );
     return NULL;
 }
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux