From: Han Holl Date: 2005-09-16T20:56:38+09:00 Subject: Re: bug in require? ------=_Part_8319_2271832.1126871795722 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yes, that's answering where it happens. Remains the question why. Han On 9/16/05, Mauricio Fern=E1ndez wrote: >=20 > 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= =20 > it > > just open and closes the file, without reading. I'm very interested in= =20 > this, > > because I've noticed the same behaviour with my Rails application, and= =20 > there > > the search path is _huge_. >=20 > static int > file_load_ok(const char *file) > { > FILE *f; >=20 > if (!file) return 0; > f =3D fopen(file, "r"); > if (f =3D=3D NULL) return 0; > fclose(f); > return 1; > } >=20 > (file.c) >=20 > -- > Mauricio Fernandez >=20 > ------=_Part_8319_2271832.1126871795722--