From owner-freebsd-questions Wed Dec 6 10:34:56 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA08183 for questions-outgoing; Wed, 6 Dec 1995 10:34:56 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA08176 for ; Wed, 6 Dec 1995 10:34:48 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA01515; Wed, 6 Dec 1995 11:33:04 -0700 From: Terry Lambert Message-Id: <199512061833.LAA01515@phaeton.artisoft.com> Subject: Re: Processes -will- -not- die! To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Wed, 6 Dec 1995 11:33:04 -0700 (MST) Cc: drew@j51.com, freebsd-questions@freebsd.org In-Reply-To: <199512061040.KAA00954@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Dec 6, 95 10:39:59 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk > > For some reason, some of the user apps on my system will get hung, and > > won't die when somebody exits unceremoniously. I of course have to go in > > and kill the process, which proceeds to suck up all of the CPU. This > > seems to happen most with "pine" and "tin", but will happen with other > > software as well. > > It's a bug in the applications, where they're not properly checking the > return value of the read() system call, and end up in an endless loop > trying to read input. Are Uck. I still say it's SIGHUP not being delivered like it should. The question is whether POSIX and BSD process groups are really interoperable or not. > > I thought of setting a trap to kill the processes when a hangup signal is > > sent, but that should really be happening anyway, when someone gets > > disconnected. > > If you check, you'll probably find that the applications already trap HUP. Or that HUP isn't being sent. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.