lua-users home
lua-l archive

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

On 08/11/11 20:11, Roberto Ierusalimschy wrote:
>>   close(fileno(file));
>> It's ugly but it works.
> It is ugly but it is simple :)  And it seems to work!

Unless, of course, somebody else opens a new file descriptor and the
number originally assigned to 'file' is reused...

┌─── ───── ─────
│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith

Attachment: signature.asc
Description: OpenPGP digital signature