From owner-cvs-src Thu Mar 20 19:11:38 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B2EF37B401; Thu, 20 Mar 2003 19:11:33 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CED0E43F85; Thu, 20 Mar 2003 19:11:31 -0800 (PST) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a182.otenet.gr [212.205.215.182]) by mailsrv.otenet.gr (8.12.8/8.12.8) with ESMTP id h2L3BN5u000026; Fri, 21 Mar 2003 05:11:27 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.8/8.12.8) with ESMTP id h2L3BMkg003878; Fri, 21 Mar 2003 05:11:22 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.12.8/8.12.8/Submit) id h2L3BMF8003877; Fri, 21 Mar 2003 05:11:22 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 21 Mar 2003 05:11:22 +0200 From: Giorgos Keramidas To: Poul-Henning Kamp Cc: src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin Makefile src/usr.sbin/gstat Makefile gstat.c Message-ID: <20030321031122.GA3832@gothmog.gr> References: <200303202048.h2KKmgOK057174@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303202048.h2KKmgOK057174@repoman.freebsd.org> X-RAVMilter-Version: 8.4.2(snapshot 20021217) (terpsi) Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-03-20 12:48, Poul-Henning Kamp wrote: > phk 2003/03/20 12:48:41 PST > > FreeBSD src repository > > Modified files: > usr.sbin Makefile > Added files: > usr.sbin/gstat Makefile gstat.c > Log: > Add a rudimentary gstat(8) to the system. > > This is a small curses based program which shows the diskactivity > inside GEOM. It's a good idea to call endwin() too at the end of a curses program. Otherwise my terminal remains in cbreak mode which is a bit annoying, since it messes things up royally :) --- patch start --- Index: gstat.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/gstat/gstat.c,v retrieving revision 1.1 diff -u -r1.1 gstat.c --- gstat.c 20 Mar 2003 20:48:41 -0000 1.1 +++ gstat.c 21 Mar 2003 03:08:28 -0000 @@ -228,5 +228,7 @@ break; } } + + endwin(); exit (0); } --- patch end --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message