|
<snip>
I just tested and found that the Windows exit code bug still exists; “print(os.execute('exit -1'))” is returned as an error
It should set `errno` before the call and verify not only the result to be -1, but also "errno != 0" to indicate an error.
-1 is a valid return value in this case, similar to for example this Linux function; GETPRIORTITY. See “errors” at http://man7.org/linux/man-pages/man2/getpriority.2.html
Thijs
|
_______________________________________________ lua-l mailing list -- lua-l@lists.lua.org To unsubscribe send an email to lua-l-leave@lists.lua.org