PAX : Too many open files

Wietse Z. Venema wietse at wzv.UUCP
Sun Feb 12 06:21:05 AEST 1989


In article <339 at daitc.daitc.mil> apapp at dgis.daitc.mil.UUCP (Andy Papp) writes:
>I have compiled the entire PAX suite, but it blows up on me giving the error
>"Too many files open".  Has anyone else had this problem and solved it? I'm
>running it on a VAX 11/780.

Just found a mistake in the code; where closedir() should be called, the
program invokes the close() function.  This is probably related to the
problem you describe. A patch follows at the end of this article.

*** namelist.c-	Mon Feb  6 23:25:20 1989
--- namelist.c	Sat Feb 11 20:03:29 1989
***************
*** 367,373 ****
  	    if (in_subdir) {
  		curr_dir->where = telldir(dirp);
  		pushdir(curr_dir);
! 		close(dirp);
  	    } 
  	    in_subdir++;
  
--- 367,373 ----
  	    if (in_subdir) {
  		curr_dir->where = telldir(dirp);
  		pushdir(curr_dir);
! 		closedir(dirp);
  	    } 
  	    in_subdir++;
  
-- 
work:	wswietse at eutrc3.uucp	| Eindhoven University of Technology
work:	wswietse at heitue5.bitnet	| Mathematics and Computing Science
home:	wietse at wzv.uucp		| 5600 MB Eindhoven, The Netherlands



More information about the Comp.sources.bugs mailing list