X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..c1db884b287ee5c7dbca66be973c88aba40b9bc9:/uip/mhshowsbr.c diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index a95ff7d5..ef6f02c1 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -509,10 +509,11 @@ show_content_aux2 (CT ct, int serial, int alternate, char *cracked, char *buffer read (fileno (stdout), prompt, sizeof(prompt)); } SIGNAL (SIGINT, istat); - if (intr != OK) { + if (intr != OK || prompt[0] == 'n') { (*ct->c_ceclosefnx) (ct); return (alternate ? DONE : NOTOK); } + if (prompt[0] == 'q') done(OK); } } @@ -734,11 +735,12 @@ show_multi_internal (CT ct, int serial, int alternate) for (part = m->mp_parts; part; part = part->mp_next) { p = part->mp_part; - if (p->c_pid > OK) + if (p->c_pid > OK) { if (kill (p->c_pid, 0) == NOTOK) p->c_pid = 0; else kids++; + } } while (kids > 0 && (pid = wait (&status)) != NOTOK) {