lua-users home
lua-l archive

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


Hallo Ulrich,

On Jan 8, 2015, at 9:57 PM, Ulrich Schmidt <u.sch.zw@gmx.de> wrote:
> 
> Am 04.01.2015 um 13:27 schrieb Gary V. Vaughan:
>> A library binding various POSIX APIs, including curses. POSIX is the IEEE
>> Portable Operating System Interface standard. luaposix is based on lposix
>> and lcurses.
>> 
>> I am happy to announce release 33.2.1 of luaposix.
>> 
>> luaposix's home page is at http://github.com/luaposix/luaposix/
>> 
>> 
>> ## Noteworthy changes in release 33.2.1 (2015-01-04) [stable]
>> 
>> ### Bugs Fixed
>> 
>>   - Install posix.curses.html documentation file correctly.
>> 
>> 
>> Install it with LuaRocks, using:
>> 
>>     luarocks install luaposix 33.2.1
>> 
>> 
> posix.getpid() returns a tavle but a integer. So documentation does not match the implementation. (I like the table with all the pids :) May be you implement a getpids() function? )


Note the difference between the undocumented backwards compatibility function, `posix.getpid(()`, which returns a table to match the behaviour of earlier releases, and the much cleaner, lightweight function in recent releases `posix.unistd.getpid`, which behaves just like the C `getpid` function in <unistd.h> by returning just the caller's process id as an integer.

Cheers,
-- 
Gary V. Vaughan (gary AT vaughan DOT pe)