Commits

Anonymous committed aa4e040

BUG: When handing the child stdin pipe a file, allow another process to be writing to the file at the same time. This allows children such as tail -f to function properly.

  • Participants
  • Parent commits f9a0258
  • Tags PVEE-Stable-July-20-2006

Comments (0)

Files changed (1)

GCC_XML/KWSys/ProcessWin32.c

   else if(cp->PipeFileSTDIN)
     {
     /* Create a handle to read a file for stdin.  */
-    HANDLE fin = CreateFile(cp->PipeFileSTDIN, GENERIC_READ,
-                            FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
+    HANDLE fin = CreateFile(cp->PipeFileSTDIN, GENERIC_READ|GENERIC_WRITE,
+                            FILE_SHARE_READ|FILE_SHARE_WRITE,
+                            0, OPEN_EXISTING, 0, 0);
     if(fin == INVALID_HANDLE_VALUE)
       {
       return 0;