aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 6dee22e..eccec2b 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1043,8 +1043,10 @@ static int lpm_flock(lua_State* L) {
flock(fd, LOCK_UN);
close(fd);
#endif
- if (err)
- return lua_error(L);
+ if (err) {
+ lua_pushboolean(L, 1);
+ return 1;
+ }
return 0;
}