Make $pipestatus thread safe and other misc cleanup

This commit is contained in:
ridiculousfish
2019-02-10 13:43:02 -08:00
parent 2c8abdf5cb
commit 2c3214cabd
7 changed files with 24 additions and 33 deletions

View File

@@ -367,7 +367,7 @@ static void input_mapping_execute(const input_mapping_t &m, bool allow_commands)
// FIXME(snnw): if commands add stuff to input queue (e.g. commandline -f execute), we won't
// see that until all other commands have also been run.
int last_status = proc_get_last_status();
const auto& last_job_statuses = proc_get_last_job_statuses();
auto last_job_statuses = proc_get_last_job_statuses();
for (const wcstring &cmd : m.commands) {
parser_t::principal_parser().eval(cmd, io_chain_t(), TOP);
}