diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-12-03 18:41:23 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-12-03 18:41:23 -0500 |
commit | 0654c7025fbe241efddf0c3b9e58817f262aeda9 (patch) | |
tree | 763b5e6a40224fd71653797b3066bf276c81f308 /WWW/Library/Implementation/HTTCP.c | |
parent | e87f21b4ae754e738cbb577215a039a26e28ad52 (diff) | |
download | lynx-snapshots-0654c7025fbe241efddf0c3b9e58817f262aeda9.tar.gz |
snapshot of project "lynx", label v2-8-2dev_8
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.c')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index 6abde5f5..1f201aea 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -454,7 +454,6 @@ PUBLIC int HTParseInet ARGS2( struct timeval timeout; int dns_patience = 30; /* how many seconds will we wait for DNS? */ int child_exited = 0; - int ok_to_select_stdin = -1; /* ** Reap any children that have terminated since last time @@ -539,16 +538,7 @@ PUBLIC int HTParseInet ARGS2( ** selectable! /dev/null isn't, on some systems, which ** makes some useful Lynx invocations fail. -BL */ - if (ok_to_select_stdin == -1) { - timeout.tv_sec = 0; - timeout.tv_usec = 0; - FD_SET(0, &readfds); /* stdin -BL */ - selret = select(1, &readfds, NULL, NULL, &timeout); - if (selret >= 0) ok_to_select_stdin = 1; - else ok_to_select_stdin = 0; - FD_ZERO(&readfds); - } - if (ok_to_select_stdin) FD_SET(0, &readfds); + if (isatty(fileno(stdin))) FD_SET(fileno(stdin), &readfds); #endif /* USE_SLANG */ timeout.tv_sec = 1; timeout.tv_usec = 0; |