Subject: Re: An improvment to ipfstat -t state top
To: John <from_netbsd4@frear.com>
From: David Laight <david@l8s.co.uk>
List: netbsd-users
Date: 04/07/2004 21:52:16
On Mon, Apr 05, 2004 at 11:19:20PM -0500, John wrote:
> Hi,
> 
> 	I want to share a modification I made to my netbsd system with the
> public.  A while ago I ran "ipfstat -t" and let it run for a while, then I
> closed the terminal window without hitting 'q' to gracefully exit the
> program.  A little while later, I noticed ipfstat was still running and
> was cpu bound.

It ought to exit because either:

1) reading the terminal reports EOF
or
2) SIGHUP got generated.

Detecting write errors shouldn't be necessary, isatty() is not appropraite.
(the output could (just about) validly not be a tty)

	David

-- 
David Laight: david@l8s.co.uk