[comp.windows.x] Bug in clients/xman

clyde@ut-emx.UUCP (Head UNIX Hacquer) (04/14/89)

			  X Window System Bug Report

VERSION:
    R3

CLIENT MACHINE and OPERATING SYSTEM:
    Encore Multimax UMAX 4.2 3.2.2 (any 4.2 based OS with < 64 file
    descriptors per process)

DISPLAY:
    N/A

WINDOW MANAGER:
    N/A

AREA:
    clients/xman

SYNOPSIS:
    Xman accumlates file desciriptors - closedir not called after each
    manual page directory has been scanned.

DESCRIPTION:
    When your MANPATH has sufficent number of components, opening the help
    file fails because there are no more file descriptors available.
    Also display of manual pages breaks for the same reason.

REPEAT BY:
    Put 5 manual page trees in your MANPATH (yes, we have those).

FIX:
***************
*** 341,350 ****
--- 341,351 ----
      }
      sprintf(full_name, "%s/%s", path, name);
      local_manual->entries[nentries++] = StrAlloc(full_name);
    }
    local_manual->nentries = nentries;
+   closedir(dir);
  }
  
  /*	Function Name: SortAndRemove
   *	Description: This function sorts all the entry names and
   *                   then removes all the duplicate entries.
-- 
Shouter-To-Dead-Parrots @ Univ. of Texas Computation Center; Austin, Texas  
	clyde@emx.utexas.edu; ...!cs.utexas.edu!ut-emx!clyde

Tip #268: Don't feel insecure or inferior! Remember, you're ORGANIC!!
	  You could win an argument with almost any rock!

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (04/19/89)

> SYNOPSIS:
>     Xman accumlates file desciriptors - closedir not called after each
>     manual page directory has been scanned.

This bug has already been fixed, and will be gone by R4.

                                                Chris D. Peterson
                                                MIT X Consortium