[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] ./WWW/Library/Implementation/HTTCP.c
From: |
Thomas Dickey |
Subject: |
Re: [Lynx-dev] ./WWW/Library/Implementation/HTTCP.c |
Date: |
Mon, 26 Jun 2006 08:25:26 -0400 |
User-agent: |
Mutt/1.3.27i |
On Mon, Jun 26, 2006 at 01:19:32PM +0100, Nigel Horne wrote:
> Suggested patch:
not quite ( the standard input is normally file descriptor 0 )
>
>
> #ifdef UNIX
> if (fildes == 0) {
> /*
> * 0 can be a valid socket fd, but if it's a tty something must
> * have gone wrong. - kw
> */
> if (isatty(fildes)) {
> CTRACE((tfp, "HTDoRead - refusing to read fd 0 which is a
> tty!\n"));
> + SOCKET_ERRNO = EINVAL;
> return -1;
> }
> } else
>
> -Nigel
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net