0.9.8.1:
authorJuho Snellman <jsnell@iki.fi>
Wed, 28 Dec 2005 12:39:12 +0000 (12:39 +0000)
committerJuho Snellman <jsnell@iki.fi>
Wed, 28 Dec 2005 12:39:12 +0000 (12:39 +0000)
        Make LDB quit on a ^D from a TTY instead of just ignoring the EOF.

        * More consistent with the normal REPL
        * The old behaviour would occasionally cause an infinite loop
          of printing the LDB prompt, trying to read input, finding that
          the tty was closed, printing the prompt again, etc.

src/runtime/monitor.c
version.lisp-expr

index 69d0380..aff7720 100644 (file)
@@ -453,14 +453,7 @@ sub_monitor(void)
         fflush(stdout);
         line = fgets(buf, sizeof(buf), ldb_in);
         if (line == NULL) {
-            if (isatty(ldb_in_fd)) {
-                putchar('\n');
-                continue;
-            }
-            else {
-                fprintf(stderr, "\nEOF on something other than a tty.\n");
-                exit(0);
-            }
+            exit(1);
         }
         ptr = line;
         if ((token = parse_token(&ptr)) == NULL)
index 1784a09..d2970a3 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.8"
+"0.9.8.1"