]> andersk Git - moira.git/commitdiff
Don't do readline stuff if _either_ stdin or stdout isn't a tty
authordanw <danw>
Thu, 16 Jan 1997 01:27:17 +0000 (01:27 +0000)
committerdanw <danw>
Thu, 16 Jan 1997 01:27:17 +0000 (01:27 +0000)
clients/mrtest/mrtest.c

index cf29d42cbd902bcfc569e18c99f2d8bcbc1c96b6..fdd022f0baf052a457097bd9841b34709ae04701 100644 (file)
@@ -98,7 +98,7 @@ char *mr_gets(char *prompt, char *buf, size_t len)
 {
   char *in;
 #ifdef USE_READLINE
-  if(isatty(0)) {
+  if(isatty(0) && isatty(1)) {
     in=readline(prompt);
     
     if (!in) return NULL;
This page took 0.079466 seconds and 5 git commands to generate.