summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/mark.h
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-05-24 22:43:36 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-05-24 22:43:36 +0000
commit1a875079809eb31d2a080e005d76f4f634ebb771 (patch)
tree5f73c255777ec7c4308985a55fb005c583e2e0f4 /usr.bin/vi/common/mark.h
parenta3da61d7add650116ef2599a85d77a28aa36cae4 (diff)
set the close-on-exec flag for newly opened files
Reason: vi uses flock to help you notice when you are already editing a file. But, when using :shell or :! the fdesc for the locked file is inherited by the subprocess. This means that if you (say) do a :!xterm& and then quit vi, the fdesc is kept open by the xterm and the lock is never released. future vi's on that file will then complain. I sent this off to bostic.com a long time ago but have as yet heard nothing.
Diffstat (limited to 'usr.bin/vi/common/mark.h')
0 files changed, 0 insertions, 0 deletions