From owner-freebsd-bugs Fri Sep 8 8:40: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C0FDF37B424 for ; Fri, 8 Sep 2000 08:40:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA95864; Fri, 8 Sep 2000 08:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 8 Sep 2000 08:40:02 -0700 (PDT) Message-Id: <200009081540.IAA95864@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Laurent Frigault Subject: Re: misc/21089: vi silently corrupt open file on SIGINT when entering :wq in command mode Reply-To: Laurent Frigault Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/21089; it has been noted by GNATS. From: Laurent Frigault To: Sheldon Hearn Cc: freebsd-gnats-submit@freebsd.org Subject: Re: misc/21089: vi silently corrupt open file on SIGINT when entering :wq in command mode Date: Fri, 8 Sep 2000 17:32:24 +0200 On Fri, Sep 08, 2000 at 03:33:40PM +0200, Sheldon Hearn wrote: > > >Number: 21089 > > >Category: misc > > >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? If you enter : SIGINT has no effect If you enter :w The file is corrupted on SIGINT and you have a message : ================================= +=+=+=+=+=+=+=+ :w Interrupted Press any key to continue: ================================= and the file is save corrupted but you can re-write it with :wq If you enter :wq The file is save corrupted on SIGINT and vi terminate silently I have reproduced the problem under : FreeBSD victor.teaser.fr 5.0-CURRENT FreeBSD 5.0-CURRENT #10: Wed Aug 9 16:34:08 CEST 2000 lwa@victor.teaser.fr:/usr/src/sys/compile/VICTOR i386 Hope, this helps Laurent -- Laurent Frigault | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message