diff --git a/frontend/device/input.lua b/frontend/device/input.lua index 761fe8149..32016912e 100644 --- a/frontend/device/input.lua +++ b/frontend/device/input.lua @@ -823,7 +823,7 @@ function Input:waitEvent(timeout_us) break elseif ev == "application forced to quit" then --- @todo return an event that can be handled - os.exit(0) + os.exit(0, true) end logger.warn("got error waiting for events:", ev) if ev ~= "Waiting for input failed: 4\n" then diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index 3d78d8c80..4242d0e29 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -1278,7 +1278,7 @@ function UIManager:handleInput() io.stderr:write(debug.traceback() .. "\n") io.stderr:flush() self.looper:close() - os.exit(1) + os.exit(1, true) end) end) end