Brian Somers 2e4e1ffe62 Set the close-on-exec flag when we lock the file we're editing.
This prevents any background sub-command executed from inheriting
the descriptor & lock (and making vi think that someone else is
editing the file when it re-edits).

Remembered from: An OpenBSD commit message from May '99
1999-08-06 08:34:42 +00:00
..
1997-04-18 23:36:52 +00:00
1999-04-03 06:58:32 +00:00
1997-04-18 23:36:52 +00:00