From owner-freebsd-questions Mon Dec 8 00:20:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA15757 for questions-outgoing; Mon, 8 Dec 1997 00:20:21 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from css.tuu.utas.edu.au (css.tuu.utas.edu.au [131.217.115.65]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA15745 for ; Mon, 8 Dec 1997 00:20:15 -0800 (PST) (envelope-from andrew@ugh.net.au) From: andrew@ugh.net.au Received: from localhost (acs@localhost) by css.tuu.utas.edu.au (8.8.8/8.8.5) with SMTP id TAA24806; Mon, 8 Dec 1997 19:20:12 +1100 (EST) X-Authentication-Warning: depravitas.tuu.utas.edu.au: acs owned process doing -bs Date: Mon, 8 Dec 1997 19:20:12 +1100 (EST) To: Kwoody cc: The FreeBSD Questions List Subject: Re: kill a ptty? In-Reply-To: Message-ID: X-Meaning-of-Life: none X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 7 Dec 1997, Kwoody wrote: > At any rate I'm now left with a "ghost" connection saying that I'm still > logged in to the bsd machine from the sun even though I'm not. Idle time > on this is still increasing also. It dosnt hurt so you can just leave it there if you want. Otherwise the easiest may to get rid of it is to just use its tty again..ie telnet to localhost a few times or use screen. It happened because login entered your connection in the wtmp database but because you killed telnetd it didnt get a chance to delete it. In the future find the PID of your shell and kill -1 Andrew