FreeBSD Bugzilla – Attachment 10526 Details for
Bug 21089
[patch] vi(1) silently corrupts open file on SIGINT when entering :wq in command mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nvi-SIGINT.diff
nvi-SIGINT.diff (text/x-diff; charset=us-ascii), 1.21 KB, created by
Jaakko Heinonen
on 2008-02-06 06:55:06 UTC
(
hide
)
Description:
nvi-SIGINT.diff
Filename:
MIME Type:
Creator:
Jaakko Heinonen
Created:
2008-02-06 06:55:06 UTC
Size:
1.21 KB
patch
obsolete
>Index: ex/ex_quit.c >=================================================================== >RCS file: /home/ncvs/src/contrib/nvi/ex/ex_quit.c,v >retrieving revision 1.1.1.1 >diff -u -r1.1.1.1 ex_quit.c >--- ex/ex_quit.c 1 Nov 1996 06:45:30 -0000 1.1.1.1 >+++ ex/ex_quit.c 6 Feb 2008 06:45:32 -0000 >@@ -35,6 +35,9 @@ > { > int force; > >+ if (INTERRUPTED(sp)) >+ return (1); >+ > force = FL_ISSET(cmdp->iflags, E_C_FORCE); > > /* Check for file modifications, or more files to edit. */ >Index: ex/ex_write.c >=================================================================== >RCS file: /home/ncvs/src/contrib/nvi/ex/ex_write.c,v >retrieving revision 1.1.1.1 >diff -u -r1.1.1.1 ex_write.c >--- ex/ex_write.c 1 Nov 1996 06:45:31 -0000 1.1.1.1 >+++ ex/ex_write.c 6 Feb 2008 06:45:32 -0000 >@@ -140,6 +140,9 @@ > int flags; > char *name, *p; > >+ if (INTERRUPTED(sp)) >+ return (1); >+ > NEEDFILE(sp, cmdp); > > /* All write commands can have an associated '!'. */ >@@ -323,8 +326,6 @@ > for (; fline <= tline; ++fline, ++lcnt) { > /* Caller has to provide any interrupt message. */ > if ((lcnt + 1) % INTERRUPT_CHECK == 0) { >- if (INTERRUPTED(sp)) >- break; > if (!silent) { > gp->scr_busy(sp, msg, msg == NULL ? > BUSY_UPDATE : BUSY_ON);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21089
: 10526 |
10527
|
10528
|
10529
|
10530
|
10531
|
10532