From owner-freebsd-stable Wed Aug 21 17:52:45 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28ECC37B400 for ; Wed, 21 Aug 2002 17:52:43 -0700 (PDT) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 819D843E6A for ; Wed, 21 Aug 2002 17:52:42 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 1A5B6A810; Thu, 22 Aug 2002 10:52:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 18FC55425; Thu, 22 Aug 2002 10:52:41 +1000 (EST) Date: Thu, 22 Aug 2002 10:52:41 +1000 (EST) From: Andrew To: Mike Harding Cc: stable@freebsd.org Subject: Re: minor (been there forever) annoyance In-Reply-To: <20020821140907.70A9E1314F@netcom1.netcom.com> Message-ID: <20020822104846.Y39570-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 21 Aug 2002, Mike Harding wrote: > Can somebody tell me why if I run 'systat' in an x-window and then > kill the window, systat chews up all the CPU? Is there any way to fix I only had a 30 second look but it seems that the problem is probably in keyboard.c. It calls getch in an infinite loop and doesn't test for a return value of ERR which is presumably what would be returned if stdin had disappeared. I only had a quick look though and there may be something else going wrong. I can't actually reproduce the behaviour here. Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message