From: matz@... (Yukihiro Matsumoto) Date: 2002-02-05T15:41:12+09:00 Subject: Re: Ruby bug? IO.close doesn't check for error Hi, In message "Ruby bug? IO.close doesn't check for error" on 02/02/05, Matt Armstrong writes: |It is possible for fclose() to fail (for example, when fclose() needs |to flush buffers to disk and those writes fail due to a disk full |condition). I was surprised to find that fptr_finalize did not check |for this failure. | |I'd suggest something like the patch below. "fptr_finalize" may be called from GC, in which case raising error is useless (too late). So how do you think raising exception in explicit "close" call? matz.