From: "Mauricio Fernández" Date: 2005-09-16T20:37:19+09:00 Subject: Re: bug in require? On Fri, Sep 16, 2005 at 07:14:21PM +0900, Han Holl wrote: > If you look at the stracefile, you'll notice that the last three times it > just open and closes the file, without reading. I'm very interested in this, > because I've noticed the same behaviour with my Rails application, and there > the search path is _huge_. static int file_load_ok(const char *file) { FILE *f; if (!file) return 0; f = fopen(file, "r"); if (f == NULL) return 0; fclose(f); return 1; } (file.c) -- Mauricio Fernandez