On 12 May 2020, at 17:00, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:
<snip>On 8 May 2020, at 16:42, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
All feedback welcome. Thanks.
--lhf
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org
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
_______________________________________________ lua-l mailing list -- lua-l@lists.lua.org To unsubscribe send an email to lua-l-leave@lists.lua.org