aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 03c19f5..1d66e41 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -969,6 +969,7 @@ int lpm_flock(lua_State* L) {
UnlockFile(file, 0, 0, 1, 0);
CloseHandle(file);
#else
+ flock(fd, LOCK_UN);
close(fd);
#endif
if (err)