files: close a lockfile after reading it
parent
2dffcf101f
commit
08b770d425
|
@ -337,6 +337,8 @@ int do_lockfile(const char *filename)
|
||||||
readtot += readamt;
|
readtot += readamt;
|
||||||
} while (readamt > 0 && readtot < LOCKBUFSIZE);
|
} while (readamt > 0 && readtot < LOCKBUFSIZE);
|
||||||
|
|
||||||
|
close(lockfd);
|
||||||
|
|
||||||
if (readtot < 48) {
|
if (readtot < 48) {
|
||||||
statusline(MILD, _("Error reading lock file %s: "
|
statusline(MILD, _("Error reading lock file %s: "
|
||||||
"Not enough data read"), lockfilename);
|
"Not enough data read"), lockfilename);
|
||||||
|
|
Loading…
Reference in New Issue