X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fmonitor.c;h=9d175086ca9829725094e122f340895e173468b7;hb=007bcd5aac2f3a1e714563bd39f7a2db2d0bf7c2;hp=ce0ef794db8e31b5de825697e8a7958c87314c99;hpb=7c96d7c62d46f4ba2711c06d45150e2441bbf1a7;p=sbcl.git diff --git a/src/runtime/monitor.c b/src/runtime/monitor.c index ce0ef79..9d17508 100644 --- a/src/runtime/monitor.c +++ b/src/runtime/monitor.c @@ -302,9 +302,13 @@ quit_cmd(char **ptr) printf("Really quit? [y] "); fflush(stdout); - fgets(buf, sizeof(buf), ldb_in); - if (buf[0] == 'y' || buf[0] == 'Y' || buf[0] == '\n') + if (fgets(buf, sizeof(buf), ldb_in)) { + if (buf[0] == 'y' || buf[0] == 'Y' || buf[0] == '\n') + exit(1); + } else { + printf("\nUnable to read response, assuming y.\n"); exit(1); + } } static void