Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!hoptoad!gnu From: gnu@hoptoad.uucp (John Gilmore) Newsgroups: comp.sources.bugs Subject: Re: PAX : Too many open files Message-ID: <6510@hoptoad.uucp> Date: 13 Feb 89 00:20:41 GMT References: <86247@sun.uucp> <1133@naucse.UUCP> <86924@sun.uucp> <200@wzv.UUCP> Organization: Grasshopper Group in San Francisco Lines: 15 wietse@wzv.UUCP (Wietse Z. Venema) wrote: > Just found a mistake in the code; where closedir() should be called, the > program invokes the close() function... > > < close(dirp); > --- > > closedir(dirp); Note that the problem would've been found a long time ago had this program been checking the results of its system calls... (Yes, Virginia, a "close()" CAN fail!) -- Copyright 1989 John Gilmore; you may redistribute only if your recipients may. (Watergate, Stargate, and now BIXgate? Copyleft your work to avoid abuse!) John Gilmore {sun,pacbell,uunet,pyramid,amdahl}!hoptoad!gnu gnu@toad.com