From owner-freebsd-bugs Tue Jan 7 23:40:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA19371 for bugs-outgoing; Tue, 7 Jan 1997 23:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA19351; Tue, 7 Jan 1997 23:40:01 -0800 (PST) Date: Tue, 7 Jan 1997 23:40:01 -0800 (PST) Message-Id: <199701080740.XAA19351@freefall.freebsd.org> To: freebsd-bugs Cc: From: Mike Pritchard Subject: Re: gnu/2392: man(1) leaks file descriptors Reply-To: Mike Pritchard Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR gnu/2392; it has been noted by GNATS. From: Mike Pritchard 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"