lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 12 May 2020, at 17:00, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:



On 8 May 2020, at 16:42, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

Lua 5.4.0 (rc3) is now available for testing at
http://www.lua.org/work/lua-5.4.0-rc3.tar.gz
<snip>
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

Sorry: see “return value” at http://man7.org/linux/man-pages/man2/getpriority.2.html (not “errors”)

Thijs


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