2 controls Ds needed to exit.

This commit is contained in:
Kelvin Sherlock 2019-02-23 17:32:00 -05:00
parent 52d2c5f509
commit 69bc724ae8

View File

@ -1233,7 +1233,11 @@ int debug_shell(int code) {
for(;;) {
cp = x_readline("> ");
if (!cp) return 0;
if (!cp) {
if (++control_d_count < 2) continue;
return 0;
}
control_d_count = 0;
if (!*cp) continue;
c = parse_command(cp);
if (c < 0) printf("error.\n");