X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fprint.c;h=833ec91d6098fd35fc8354756b45159a72d8252b;hb=d25e3478acccec70402ff32554669a982be8e281;hp=73ec03ba560e9c84ff37953a8c5d428a6aa6d582;hpb=7a79c7338b8c8fb6d84a275d7c0e51ce93150059;p=sbcl.git diff --git a/src/runtime/print.c b/src/runtime/print.c index 73ec03b..833ec91 100644 --- a/src/runtime/print.c +++ b/src/runtime/print.c @@ -195,12 +195,15 @@ static boolean continue_p(boolean newline) printf("More? [y] "); fflush(stdout); - fgets(buffer, sizeof(buffer), stdin); - - if (buffer[0] == 'n' || buffer[0] == 'N') - throw_to_monitor(); - else + if (fgets(buffer, sizeof(buffer), stdin)) { + if (buffer[0] == 'n' || buffer[0] == 'N') + throw_to_monitor(); + else + cur_lines = 0; + } else { + printf("\nUnable to read response, assuming y.\n"); cur_lines = 0; + } } }