[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: read error
- From: David Given <dg@...>
- Date: Tue, 08 Nov 2011 22:50:56 +0000
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...
--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith
Attachment:
signature.asc
Description: OpenPGP digital signature