From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 09:49:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6030816A4CE for ; Mon, 18 Oct 2004 09:49:27 +0000 (GMT) Received: from kayjay.xs4all.nl (kayjay.xs4all.nl [80.126.33.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A821D43D2F for ; Mon, 18 Oct 2004 09:49:26 +0000 (GMT) (envelope-from karelj@kayjay.xs4all.nl) Received: from kayjay.xs4all.nl (localhost.kayjay.xs4all.nl [127.0.0.1]) by kayjay.xs4all.nl (8.13.1/8.13.1) with ESMTP id i9I9nOeB093351; Mon, 18 Oct 2004 11:49:24 +0200 (CEST) (envelope-from karelj@kayjay.xs4all.nl) Received: (from karelj@localhost) by kayjay.xs4all.nl (8.13.1/8.13.1/Submit) id i9I9nOTA093350; Mon, 18 Oct 2004 11:49:24 +0200 (CEST) (envelope-from karelj) Date: Mon, 18 Oct 2004 11:49:24 +0200 From: "Karel J. Bosschaart" To: Andreas =?iso-8859-1?Q?Wider=F8e?= Andersen Message-ID: <20041018094924.GA93028@kayjay.xs4all.nl> References: <6.1.2.0.2.20041018112957.03b9ccc0@malibu.wideroe.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6.1.2.0.2.20041018112957.03b9ccc0@malibu.wideroe.net> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Recover lost ttyps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 09:49:27 -0000 On Mon, Oct 18, 2004 at 11:30:02AM +0200, Andreas Widerĝe Andersen wrote: > Hi, > Is there a simple way (as root) to recover lost ttyps? Not that I know, but I would be interested to know if it is possible. Does the process (port build for example) still run? When it happens to me, the processes in the ttyp usually are killed, except when run with 'nohup'. > Example: I'm rebuilding some ports and while this is done the ADSL line is > disconnected. A few seconds later I'm back online, but the ttyp0 is lost > and I'm now logged in as root on ttyp1. I use 'screen' (it's in ports: misc/screen) nowadays to work around the problems when a connection is dropped and I'm very happy with it: http://www.gnu.org/software/screen/ . I'm using it right now to do a buildworld in a KDE session; if KDE or X would crash, the buildworld does not stop and I can simply reconnect :-). Karel.