Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!mtxinu!unisoft!uunet!mcvax!hp4nl!eutrc3!wzv!wietse From: wietse@wzv.UUCP (Wietse Z. Venema) Newsgroups: comp.sources.bugs Subject: Re: PAX : Too many open files Message-ID: <200@wzv.UUCP> Date: 11 Feb 89 20:21:05 GMT References: <86247@sun.uucp> <1133@naucse.UUCP> <86924@sun.uucp> <339@daitc.daitc.mil> Reply-To: wietse@wzv.UUCP (Wietse Z. Venema) Organization: Eindhoven University of Technology, The Netherlands Lines: 32 In article <339@daitc.daitc.mil> apapp@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@eutrc3.uucp | Eindhoven University of Technology work: wswietse@heitue5.bitnet | Mathematics and Computing Science home: wietse@wzv.uucp | 5600 MB Eindhoven, The Netherlands