mpw-make - exit on error if {exit}

This commit is contained in:
Kelvin Sherlock 2016-07-23 15:29:53 -04:00
parent 76d5c9a474
commit a366bbf2cb

View File

@ -371,11 +371,10 @@ int make(int argc, char **argv) {
ptr->execute(e, fds);
} catch (execution_of_input_terminated &ex) {
control_c = 0;
if (!(ptr->terminal() && ++iter == v.end())) {
fprintf(stderr, "%s\n", ex.what());
}
fprintf(stderr, "%s\n", ex.what());
if (e.exit())
exit(ex.status());
e.status(ex.status(), false);
return;
}
}
};