Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2000 01:59:20 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: misc/21089: vi silently corrupt open file on SIGINT when entering :wq in command mode 
Message-ID:  <Pine.BSF.4.21.0009090149170.31276-100000@besplex.bde.org>
In-Reply-To: <200009081340.GAA73126@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 Sep 2000, Sheldon Hearn wrote:

>  > >Synopsis:       vi silently corrupt open file on SIGINT when entering :wq in
>  command mode
>  
>  As a datapoint, I don't see this behaviour in the development branch.
>  In fact, SIGINT doesn't even kill vi when it's in command state!  It
>  just aborts out of command-state, as expected.
>  
>  Can anyone else confirm the results reported?

It happens here.  An 89288-byte file was truncated to 3290 bytes.

(SIGINT never kills vi directly since vi has to catch it to clean up.
I wish it wouldn't catch it when it can't clean up due to a disk-full
error.)

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009090149170.31276-100000>