> I agree with you in theory, but in practice I think it doesn't matter
> most of the time: most of the time people don't check the return
> values of their print() calls, making the point of checking close() a
> bit moot IMHO. 

It is neither necessary nor sufficient to check the return value 
from print to detect an error in print.

> Also, closing a valid read-only filedescriptor can't
> even generate an error AFAIK.

Certainly it can!!

--tom

Reply via email to