Jonathan Larmour 写道: > Jonathan Larmour wrote: > >> Let me know if there are any problems with the attached patch, which I'm >> checking in. Thanks. >> > > Ahem. Now attached. > > Jifl > + // Don't let the files table change e.g. by closing the file.
+ if ( Cyg_libc_stdio_files::lock() ) {
+ err = EINTR;
+ break;
+ }
In most time, Cyg_libc_stdio_files::lock() return true, flush would not
work.
Xiaochen Zhou
