Index: src/backend/storage/file/fd.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/storage/file/fd.c,v
retrieving revision 1.118
diff -c -r1.118 fd.c
*** src/backend/storage/file/fd.c	4 Jul 2005 04:51:48 -0000	1.118
--- src/backend/storage/file/fd.c	7 Aug 2005 17:00:10 -0000
***************
*** 315,321 ****
  	fd = (int *) palloc(size * sizeof(int));
  
  	/* dup until failure ... */
! 	for (;;)
  	{
  		int			thisfd;
  
--- 315,321 ----
  	fd = (int *) palloc(size * sizeof(int));
  
  	/* dup until failure ... */
! 	for ( ; used <= max_files_per_process ; )
  	{
  		int			thisfd;
  
