projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Added config.sub and config.guess to the list of files to be
[mmh]
/
uip
/
mhshowsbr.c
diff --git
a/uip/mhshowsbr.c
b/uip/mhshowsbr.c
index
a95ff7d
..
ef6f02c
100644
(file)
--- 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);
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);
}
(*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;
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++;
if (kill (p->c_pid, 0) == NOTOK)
p->c_pid = 0;
else
kids++;
+ }
}
while (kids > 0 && (pid = wait (&status)) != NOTOK) {
}
while (kids > 0 && (pid = wait (&status)) != NOTOK) {