From owner-freebsd-current@FreeBSD.ORG Mon May 19 03:22:53 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC37937B401; Mon, 19 May 2003 03:22:53 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 654F143F75; Mon, 19 May 2003 03:22:52 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h4JAMowP041341; Mon, 19 May 2003 20:22:50 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h4JAMmYm095525; Mon, 19 May 2003 20:22:49 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Mon, 19 May 2003 20:22:48 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Ruslan Ermilov In-Reply-To: <20030519081817.GA1035@sunbay.com> Message-ID: <20030519192357.O93323-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: man(1) oddity - was: HEADS UP: bzip2(1) compression for manpages... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2003 10:22:54 -0000 On Mon, 19 May 2003, Ruslan Ermilov wrote: > On Mon, May 19, 2003 at 11:01:00AM +1000, Andy Farkas wrote: > > On Fri, 16 May 2003, Ruslan Ermilov wrote: > > > On Fri, May 02, 2003 at 12:09:02PM +1000, Andy Farkas wrote: > > > > > > > > As a normal user, the "Formatting page, please wait..." message never > > > > appears, whereas it does for root. > > > > > > > > IMHO this is a mild POLA violation. > > > > > > > For a normal user, man(1) no longer creates the catpages. > > > This is still being revised (by me). > > > > It still has to format the page. A user should be told this regardless if > > she is the superuser or not. ATM, only root gets a message. > > > Not quite. When catpages are created by man(1), the user is > displayed the text only after the whole catpage was created. > This can take some considerable time on large manpages and > slow machines. This is my point. A normal user isn't told whats happening anymore: $ sysctl -a | grep kern.version kern.version: FreeBSD 5.1-BETA #4: Sat May 17 14:23:21 EST 2003 $ $ find /usr/share/man/ -name "ppp.8*" /usr/share/man/man8/ppp.8.gz $ $ /usr/bin/time man ppp > /dev/null ***user waits here*** 11.57 real 11.35 user 1.26 sys $ $ su - Password: # # /usr/bin/time man ppp > /dev/null Formatting page, please wait...***user waits here***Done. 11.75 real 11.64 user 1.23 sys # A normal user has to wait staring at a flashing cursor for 11.5 seconds before *anything* happens, but root is told "Formatting page, please wait..." Am I explaining it enough? > When catpages are not created, the user is > displayed the text as soon as part of it becomes available > from the "/usr/bin/groff -S -Wall -mtty-char -man" command, > subject to the ${PAGER} buffering. If a catpage already exists, the `formatting` message does not appear for any user. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/