Date: Wed, 17 Jan 2001 03:01:02 -0800 From: Kent Stewart <kstewart@urx.com> To: Matt Dillon <dillon@earth.backplane.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Possible bug in /usr/bin/makewhatis. Message-ID: <3A657B6E.673E6EEC@urx.com> References: <200101170441.f0H4fmw45025@earth.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Matt Dillon wrote:
>
> I was doing some installworlds and got a bunch of 'gzcat: Broken pipe'
> errors at the very end when it was doing 'makewhatis' on various manual
> directories.
It also only happens if you are running ssh to logon to the computer
doing the makewhatis. You can telnet to the system and you don't see
the problem.
Kent
>
> I believe the problem is related to the makewhatis perl script closing
> the input descriptor before draining all the input, but not being a
> perl progammer I can't tell for sure. The place where the perl program
> appeared to be closing the input prematurely is here:
>
> # ``man'' style pages
> # &&: it takes you only half the user time, regexp is slow!!!
> if (/^\.SH/ && /^\.SH[ \t]+["]?($section_name)["]?/) {
> #while(<F>) { last unless /^\./ } # Skip
> #chop; $list = $_;
> while(<F>) {
> last if /^\.SH[ \t]/; <<<<<<<<<<<<<<<<<<<<< here
> chop;
> s/^\.IX\s.*//; # delete perlpod garbage
> s/^\.[A-Z]+[ ]+[0-9]+$//; # delete commands
> s/^\.[A-Za-z]+[ \t]*//; # delete commands
> s/^\.\\".*$//; #" delete comments
> s/^[ \t]+//;
> if ($_) {
> $list .= $_;
> $list .= ' ';
> }
> }
> &out($list); close F; return 1; <<<<<<<<<<<< closing here
> ...
>
> Could someone take a look at that? There might be other places as well.
> Thanks!
>
> -Matt
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
--
Kent Stewart
Richland, WA
mailto:kbstew99@hotmail.com
http://kstewart.urx.com/kstewart/index.html
FreeBSD News http://daily.daemonnews.org/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A657B6E.673E6EEC>
