Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 1997 23:40:01 -0800 (PST)
From:      Mike Pritchard <mpp>
To:        freebsd-bugs
Subject:   Re: gnu/2392: man(1) leaks file descriptors
Message-ID:  <199701080740.XAA19351@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/2392; it has been noted by GNATS.

From: Mike Pritchard <mpp>
To: peter.jeremy@alcatel.com.au
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: gnu/2392: man(1) leaks file descriptors
Date: Tue, 7 Jan 1997 23:31:23 -0800 (PST)

 I can still get man to fail even with the supplied patch.
 You must have missed a leak or two.  In my case, /usr/share/man/cat*
 is not writable to the man program, which may be
 where the leak is in my case.
 
 peter.jeremy@alcatel.com.au wrote:
 > 
 > 
 > >Number:         2392
 > >Category:       gnu
 > >Synopsis:       man(1) leaks file descriptors
 > 
 > PAGER="exec less"
 > 64 file descriptors
 > 
 > >Description:
 > 
 > The man(1) program opens and does not close two file descriptors for
 > each manual page found.  If a large number of manual entries are found
 > in a single execution, then man will fail with various error messages
 > (see below).
 > 
 > >How-To-Repeat:
 > 
 > $ man `ls /sbin`
 > After quitting less(1) about 28 times, the following appears:
 > Pipe call failed
 > Error executing formatting or display command
 > system command exited with status 512
 > No manual entry for mount_mfs
 > Read access denied for file /usr/share/man/man8/mount_msdos.8.gz
 > No manual entry for mount_msdos
 > No manual entry for mount_nfs
 > ...
 > 
 > The permissions on /usr/share/man/man8/mount_msdos.8.gz are 0444.
 > 
 > >Fix:
 > 	
 -- 
 Mike Pritchard
 mpp@FreeBSD.org
 "Go that way.  Really fast.  If something gets in your way, turn"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701080740.XAA19351>