This matches the interface of lposix, although I do wonder why they went
with execp rather than execvp for the function name here.
Sponsored by: The FreeBSD Foundation
Differential D50177
flua: add posix.unistd.execp ifreund_freebsdfoundation.org on Mon, May 5, 8:48 PM. Authored by Tags None Referenced Files
Subscribers
Details
This matches the interface of lposix, although I do wonder why they went Sponsored by: The FreeBSD Foundation
Diff Detail
Event Timeline
Comment Actions Add comments to aid review I realized that the reasoning for using lua_newuserdatauv() is not
Comment Actions Implementation looks fine to me; it does make me wish that we'd settle on an appropriate test framework for lua, though. I'd love to have a test that confirms that the argv[0] behavior works as expected (and doesn't, e..g, crash when it's omitted). I don't insist on trying to solve that kind of problem before proceeding here, though... just something to think about.
|