[ECOS] sscanf() exception issue of C lib

Xiaochen Zhou zhouxiaochen@h3c.com
Fri Jan 16 00:50:00 GMT 2009



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


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list