[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] full_write how to distingush EOF?
From: |
Oskar Liljeblad |
Subject: |
Re: [Bug-gnulib] full_write how to distingush EOF? |
Date: |
Sun, 26 Sep 2004 10:29:09 +0200 |
User-agent: |
Mutt/1.5.6+20040818i |
On Sunday, September 26, 2004 at 01:14, Paul Eggert wrote:
>
> > How do you distinguish an EOF from a "no free space" error with
> > full_write? It seems to me that it is more important to be able
> > to do this rather than support broken systems.
>
> Can you give more details about the problem? 'write' can't fail due
> to EOF, right? (Are you worried about the case where the buffer size
> is zero?)
Looks like I need to read up on unix (and socket programming in particular).
I was under the impression that write would return 0/EOF when writing to
a disconnected socket. But now I know better... Please ignore the email.
Regards,
Oskar Liljeblad (address@hidden)