DragonFly BSD
DragonFly commits List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: nvi - Work around problem with git


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Feb 2010 16:35:11 -0800 (PST)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]