From mi@corbulon.video-collage.com  Sat Jul  9 17:22:32 2005
Return-Path: <mi@corbulon.video-collage.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 131EF16A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Jul 2005 17:22:32 +0000 (GMT)
	(envelope-from mi@corbulon.video-collage.com)
Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A7E2543D45
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Jul 2005 17:22:31 +0000 (GMT)
	(envelope-from mi@corbulon.video-collage.com)
Received: (qmail 12840 invoked from network); 9 Jul 2005 17:22:30 -0000
Received: from aldan.algebra.com ([216.254.65.224])
          (envelope-sender <mi@corbulon.video-collage.com>)
          by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 9 Jul 2005 17:22:30 -0000
Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237])
	by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j69HMJi6036711
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 9 Jul 2005 13:22:21 -0400 (EDT)
	(envelope-from mi@corbulon.video-collage.com)
Received: from corbulon.video-collage.com (mi@localhost.video-collage.com [127.0.0.1])
	by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id j69HM91h072912
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 9 Jul 2005 13:22:14 -0400 (EDT)
	(envelope-from mi@corbulon.video-collage.com)
Received: (from mi@localhost)
	by corbulon.video-collage.com (8.13.4/8.13.4/Submit) id j69HM9Re072911;
	Sat, 9 Jul 2005 13:22:09 -0400 (EDT)
	(envelope-from mi)
Message-Id: <200507091722.j69HM9Re072911@corbulon.video-collage.com>
Date: Sat, 9 Jul 2005 13:22:09 -0400 (EDT)
From: Mikhail Teterin <mi@aldan.algebra.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: nvi loses edited file on network disconnection
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         83195
>Category:       bin
>Synopsis:       nvi loses edited file on network disconnection
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 09 17:30:21 GMT 2005
>Closed-Date:    Sat Apr 04 19:47:15 UTC 2009
>Last-Modified:  Sat Apr 04 19:47:15 UTC 2009
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:
System: FreeBSD corbulon.video-collage.com 4.10-STABLE FreeBSD 4.10-STABLE #1: Sun Oct 24 01:01:39 EDT 2004 root@corbulon.video-collage.com:/maxtor/tmp/src/sys/compile/Corbulon i386

>Description:
	Here is, what just happened:

	1) I logged in to a remote server over ssh;
	2) I started editing a file (an e-mail reply using elm);
	3) halfway through the Internet connection froze for 30 seconds,
	   but (foolishly) continued to type;
	4) impatient ssh broke the connection;
	5) I re-logged in immediately, and found there being no vi
	   process;
	6) Unfortunately, `vi -r' does not list any files.

Sometimes vi manages -- like when a file is still being edited at system
shutdown, so, perhaps, it would not be that difficult to fix...

>How-To-Repeat:
	See description.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: edwin 
State-Changed-When: Thu Aug 7 01:57:55 UTC 2008 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=83195 
State-Changed-From-To: suspended->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Aug 7 01:59:33 UTC 2008 
State-Changed-Why:  
I've tried several ways to reproduce it (on 7.0), but up to so far 
I always managed to get it back, except in one case (described below) 

What could have happened is that while you were editing, you saved 
the temporary message in the location elm specified ($HOME/tmp/foo 
most likely), you started a new line but didn't press escape yet 
to indicate the end of the current input. 

So the file should still be available in the temporary location elm 
had specified. 


Can I close this PR? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=83195 
State-Changed-From-To: feedback->closed  
State-Changed-By: brucec 
State-Changed-When: Sat Apr 4 19:45:05 UTC 2009 
State-Changed-Why:  
Feedback timeout (7 months). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83195 
>Unformatted:
