home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / utils / bug / 1979 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.3 KB  |  39 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!ames!saimiri.primate.wisc.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cucbs.chem.columbia.edu!hod
  3. From: hod@cucbs.chem.columbia.edu (Hod Greeley)
  4. Subject: File stream leak in make 3.62
  5. Message-ID: <199211050412.AA20591@cucbs.chem.columbia.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 4 Nov 1992 18:12:54 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 26
  12.  
  13. Hi,
  14. I came across a small problem using make 3.62 on a sun sparc II under
  15. SunOS 4.1.1.  It's in glob_in_dir in glob.c.  When globbing files, the
  16. directory streams aren't closed, and eventually opendir fails with an
  17. errno indicating too many descriptors open for the process.  I can
  18. send a short makefile that shows how the problem arose for me if you
  19. want, but I think it's pretty straightforward.  Here's the patch I
  20. made.  Hope this helps.
  21.  
  22. *** /reef/hod/src/make-3.62/glob/glob.c Sat Oct 19 16:39:23 1991
  23. --- glob.c      Wed Nov  4 23:10:31 1992
  24. ***************
  25. *** 477,482 ****
  26. --- 477,483 ----
  27.               names = new;
  28.               ++nfound;
  29.             }
  30. +       closedir(stream);
  31.       }
  32.  
  33.     if (nfound == 0 && (flags & GLOB_NOCHECK))
  34.  
  35.  
  36. Hod Greeley
  37. hod@cucbs.chem.columbia.edu
  38.  
  39.