mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-16 05:14:43 +03:00
files: close a lockfile after reading it
This commit is contained in:
parent
2dffcf101f
commit
08b770d425
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user