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

Re: Bug#165881: telnetd aborts when EAGAIN returned from writev



reassign 165881 libc6
quit

On Tue, Oct 22, 2002 at 05:57:19AM -0600, John Marvin wrote:
> 
> However, the code checks for EWOULDBLOCK, not EAGAIN. Other Unix OS's
> might use EWOULDBLOCK in this case, but Linux uses EAGAIN. You should
> not get an EWOULDBLOCK from a write or writev call (I think Linux only
> uses EWOULDBLOCK for file locking).

Looks like a bug in glibc since it's meant to make the two symbols
identical:

 - Macro: int EAGAIN
     Resource temporarily unavailable; the call might work if you try
     again later.  The macro `EWOULDBLOCK' is another name for `EAGAIN';
     they are always the same in the GNU C library.

Why does parisc differentiate the two anyway? Every other Linux
architecture treats them the same way.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: