nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 08b770d4251da3b506aabc6bb7f488ea1e2a5340
parent 2dffcf101f2be5773f973398252a68457f7c227e
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Tue, 30 Aug 2016 11:45:33 +0200

files: close a lockfile after reading it

Diffstat:
Msrc/files.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -337,6 +337,8 @@ int do_lockfile(const char *filename) readtot += readamt; } while (readamt > 0 && readtot < LOCKBUFSIZE); + close(lockfd); + if (readtot < 48) { statusline(MILD, _("Error reading lock file %s: " "Not enough data read"), lockfilename);