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
..
1999-04-10 20:38:17 +00:00
1998-06-30 19:53:09 +00:00
1999-08-04 15:12:27 +00:00
1998-09-15 19:31:43 +00:00
1999-05-28 04:52:29 +00:00
1998-09-09 17:08:46 +00:00
1999-05-22 17:35:48 +00:00