diff options
author | Elliott Hughes <enh@google.com> | 2020-03-11 10:07:27 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-03-11 20:24:04 -0500 |
commit | 8a68f6dd4021986e10760a3a36d453809ac4be36 (patch) | |
tree | 7bfef02c278db5ecc465945f08f23d32a43cb61a /kconfig/conf.c | |
parent | e400e605471a5bc6571623b4446c41bfc9eb4942 (diff) | |
download | toybox-8a68f6dd4021986e10760a3a36d453809ac4be36.tar.gz |
vi: don't keep fd open unnecessarily.
As soon as mmap() is done, we can close the fd. xmmap() also will exit
rather than return failure so we can remove that check, and fdlength()
will fall back to lseek() so there's no need to have the fallback in vi
itself.
Spotted because the `TT.fd = 0` in linelist_unload() seemed suspicious;
-1 would have been more natural.
Diffstat (limited to 'kconfig/conf.c')
0 files changed, 0 insertions, 0 deletions