This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: GC patch: close /proc/stat file descriptor
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: java-patches at gcc dot gnu dot org, hans_boehm at hp dot com
- Date: Mon, 25 Mar 2002 16:31:05 +1200
- Subject: Re: GC patch: close /proc/stat file descriptor
- References: <Pine.LNX.4.10.10203242149001.15971-100000@mars.deadcafe.org>
Jeff Sturm wrote:
>The linux threads port looks at /proc/stat on startup to check for
>multiprocessors, but never closes it. I can't see any reason to waste a
>file descriptor on it.
>
>Tested on i686-linux.
>
>2002-03-24 Jeff Sturm <jsturm@one-point.com>
>
> * linux_threads.c (GC_get_nprocs): Close file descriptor.
>
This looks fine.
regards
Bryce.