Changeset 928 for trunk/src/corelib
- Timestamp:
- Aug 1, 2011, 9:56:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/io/qprocess_os2.cpp
r918 r928 67 67 static FILE *f = 0; 68 68 if (!f) { 69 f = fopen("\\qprocess.dbg", "w ");69 f = fopen("\\qprocess.dbg", "w"); 70 70 setbuf(f, NULL); 71 71 } … … 624 624 } 625 625 if (pipe.server != HPIPE(~0)) { 626 DosDisConnectNPipe(pipe.server); 626 // Note: We do not call DosDisConnectNPipe() as this is not necessary 627 // and will only cause DosRead() on the other side to return 628 // ERROR_PIPE_NOT_CONNECTED that will be interpreted by LIBC read() and 629 // fread() as an error (ferror() will return true) and some programs 630 // don't like it (e.g. 7z, rar32 when reading data from stdin). 627 631 DosClose(pipe.server); 628 632 pipe.server = HPIPE(~0);
Note:
See TracChangeset
for help on using the changeset viewer.