Connect a pipes client side as soon as a listening server side is available. Modified: trunk/reactos/drivers/fs/np/create.c _____
Modified: trunk/reactos/drivers/fs/np/create.c --- trunk/reactos/drivers/fs/np/create.c 2005-01-08 12:56:07 UTC (rev 12888) +++ trunk/reactos/drivers/fs/np/create.c 2005-01-08 14:54:59 UTC (rev 12889) @@ -192,14 +192,14 @@
KeInitializeEvent(&ClientFcb->Event, SynchronizationEvent, FALSE);
/* - * Step 4. Add the client FCB to a list and connect it if necessary. + * Step 4. Add the client FCB to a list and connect it if possible. */
/* Add the client FCB to the pipe FCB list. */ InsertTailList(&Pipe->ClientFcbListHead, &ClientFcb->FcbListEntry);
- /* Connect pipes if they were created by the same thread */ - if (ServerFcb && ServerFcb->Thread == ClientFcb->Thread) + /* Connect to listening server side */ + if (ServerFcb) { ClientFcb->OtherSide = ServerFcb; ServerFcb->OtherSide = ClientFcb;