Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - EINTR on fclose ()/fopen (): (1 Item)
   
EINTR on fclose ()/fopen ()  
In order to handle EINTR case for fclose (), we add a loop and check the return value of fclose (), however CodeCoverity
 tool flags a defect on it, please see attached screen shoot. Is EINTR ever set by fclose ()? If so, will it get set 
before or after file pointer is freed? 

I  checked an older version of fclose.c and didn't see that EINTR gets set, but I am not sure if the newer version 
changes that. We are using both 6.3.2 and 6.5 here.

Similarly, does EINTR set for fopen ()? Do we need to check it?

Thanks,
Xuedong

 
Attachment: Image fclose.jpg 380.58 KB