[
quote=grump post_id=223773 time=1540544344 user_id=139355]
SiENcE wrote: ↑Thu Oct 25, 2018 9:56 pm
Maybe os.exit of lua or by use of ffi ?
os.exit calls the normal C exit() function. It definitely works to quit LÖVE. Have you tried to call it?
[/quote]
Yes os.exit(0) or os.exit(1)?
There is also this ffi option. I hope it works on osx.
Code: Select all
local ffi = require("ffi")
local C = ffi.C
ffi.cdef[[
void _exit(int status);
]]
C._exit(-1) -- exec never returns
When i exit via os.exit(0) or the ffi thing this is written in the console log:
Code: Select all
AL lib: (EE) alc_cleanup: 1 device not closed
It does not appear when i exit normally via
love.event.quit.
So maybe löve waits for the device to close and on OSX it doesn't...!?
Maybe this is the problem?