mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump base, luajit-launcher, avoid assert failure in sub-processes (#11658)
Bump base: - Update LuaJIT to 20240310 - harfbuzz: fix ccache 4.9.1 errors - ci: drop unnecessary macOS build dependency - CRE: avoid assert failure in sub-processes Bump luajit-launcher: - Update LuaJIT to 20240310 Frontend: - CreDocument: prevent assert failure in sub-processes
This commit is contained in:
@@ -116,6 +116,15 @@ end
|
||||
function CreDocument:engineInit()
|
||||
if not engine_initialized then
|
||||
cre = require("libs/libkoreader-cre")
|
||||
|
||||
-- When forking to execute any stuff in a sub-process,
|
||||
-- as that stuff may not care about properly closing
|
||||
-- the document, skip cre.cpp finalizer to avoid any
|
||||
-- assertion failure.
|
||||
require("ffi/util").addRunInSubProcessAfterForkFunc("cre_skip_teardown", function()
|
||||
cre.setSkipTearDown(true)
|
||||
end)
|
||||
|
||||
-- initialize cache
|
||||
self:cacheInit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user