X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhshowsbr.c;h=ef6f02c17459c9dfe6632b37bb0fe74ca0b3b3e4;hb=7736b0a60c15cc20db0ba8c3e0fe8e11d1c78c20;hp=a95ff7d5484f466d25e704a81b8aa64be7578569;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index a95ff7d..ef6f02c 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) {