From: Paul Brannan Date: 2002-02-06T02:48:13+09:00 Subject: Re: Ruby bug? IO.close doesn't check for error On Wed, Feb 06, 2002 at 01:41:49AM +0900, Matt Armstrong wrote: > It will be hard to write a rubicon test case for this behavior though. > ;-) The following should cause fclose to fail: #include main() { FILE * fp = fopen("foo.txt", "w"); close(fileno(fp)); fclose(fp); perror("fclose"); } Paul