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);
}
}
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) {