aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-17 17:09:16 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-17 17:09:16 -0500
commitc2c049448c4357eeb8474f21e880fd7258d90d80 (patch)
tree8d127dd3951778424568ea3f117dbf5dcb6a3dab /src/lpm.c
parentc73f371caa7c6d2591ba676afd940d53fe852e40 (diff)
downloadlite-xl-plugin-manager-c2c049448c4357eeb8474f21e880fd7258d90d80.tar.gz
lite-xl-plugin-manager-c2c049448c4357eeb8474f21e880fd7258d90d80.zip
Fixed up plugin manager plugin, moving to optimization.
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)