git: nvi - Work around problem with git

看板DFBSD_commit作者時間16年前 (2010/02/19 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit d5259c7eeb46c2eeb3f47774c27ec0ec705e9234 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Thu Feb 18 16:32:39 2010 -0800 nvi - Work around problem with git * When a vi session managed by a git commit is ^Z'd and then resumed, git for some reason will set STDIN to O_NONBLOCKING. Not only will it do this, but the git process will do it in parallel with the resume so the point at which stdin becomes non-blocking from the point of view of vi is completely non-determinisitc. * Do an end-run around badly behaving parent processes by using extpread() to explicitly override the blocking/non-blocking mode. Now nvi doesn't care whether stdin is in non-blocking mode or not. Summary of changes: contrib/nvi/cl/cl_read.c | 6 ++++-- test/test/baaz | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d5259c7eeb46c2eeb3f47774c27ec0ec705e9234 -- DragonFly BSD source repository
文章代碼(AID): #1BVUBHQx (DFBSD_commit)