about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTCP.c
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.c')
-rw-r--r--WWW/Library/Implementation/HTTCP.c12
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;