From owner-freebsd-hackers Thu Sep 25 00:47:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA03218 for hackers-outgoing; Thu, 25 Sep 1997 00:47:41 -0700 (PDT) Received: from usr03.primenet.com (tlambert@usr03.primenet.com [206.165.6.203]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA03201 for ; Thu, 25 Sep 1997 00:47:35 -0700 (PDT) Received: (from tlambert@localhost) by usr03.primenet.com (8.8.5/8.8.5) id AAA10411; Thu, 25 Sep 1997 00:42:03 -0700 (MST) From: Terry Lambert Message-Id: <199709250742.AAA10411@usr03.primenet.com> Subject: Re: ee taking up weird cpu amount. To: danny@panda.hilink.com.au (Daniel O'Callaghan) Date: Thu, 25 Sep 1997 07:41:59 +0000 (GMT) Cc: nonxstnt@darkening.com, freebsd-hackers@FreeBSD.ORG In-Reply-To: from "Daniel O'Callaghan" at Sep 25, 97 04:28:12 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > > root 18863 99.1 1.2 388 732 p3- R 6:59PM 673:39.41 ee > > /etc/pw.018862 > > > > I've had this happen several times now, where I would login to my system > > and see ee taking up 99% CPU (on a P2/266). As you can see, this is some > > guy doing chfn I guess. This process has been on for 12 hours now though. > > Kill the process. The vty has been disconnected without logging out, so > ee goes into a loop. vi and pico do the same thing. IMO, this is a bug in HUP processing. I think that HUP should be sent to the process group members from the process group leaders before the tty is revoked, instead of simply erroring out the reads/writes. SVR4, SVR3, SCO Xenix, SCO UNIX, UnixWare, Solaris, SunOS, Fortune, Cubix, Huerikon, Arrete, Unisys UNIX, UNICOS, Linux, Cubix, Intel UNIX, Intel Xenix, PrimeOS, ISC UNIX, Ultrix, OSF/1, OSF/2, Microport UNIX v2, Microport UNIX v3, Altos Xenix and UNIX, Cogent, Coherent, and practically every other UNIX on the planet does this. But FreeBSD does not. Heck, who is to say my interpretaion of POSIX is right and FreeBSD's is wrong (apart from *everyone*else*on*the*planet*, that is...). Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.