Replace 0/1 with true/false in calls to job_reap

This commit is contained in:
Mahmoud Al-Qudsi 2018-11-18 17:37:54 -06:00
parent d0085cae3c
commit 3d557518d5
5 changed files with 8 additions and 8 deletions

View file

@ -326,7 +326,7 @@ void internal_exec_helper(parser_t &parser, parsed_source_ref_t parsed_source, t
morphed_chain.clear(); morphed_chain.clear();
io_cleanup_fds(opened_fds); io_cleanup_fds(opened_fds);
job_reap(0); job_reap(false);
} }
// Returns whether we can use posix spawn for a given process in a given job. Per // Returns whether we can use posix spawn for a given process in a given job. Per

View file

@ -256,7 +256,7 @@ static int interrupt_handler() {
// Fire any pending events. // Fire any pending events.
event_fire(NULL); event_fire(NULL);
// Reap stray processes, including printing exit status messages. // Reap stray processes, including printing exit status messages.
if (job_reap(1)) reader_repaint_needed(); if (job_reap(true)) reader_repaint_needed();
// Tell the reader an event occured. // Tell the reader an event occured.
if (reader_reading_interrupted()) { if (reader_reading_interrupted()) {
return shell_modes.c_cc[VINTR]; return shell_modes.c_cc[VINTR];

View file

@ -1251,7 +1251,7 @@ parse_execution_result_t parse_execution_context_t::run_1_job(tnode_t<g::job> jo
profile_item->skipped = !populated_job; profile_item->skipped = !populated_job;
} }
job_reap(0); // clean up jobs job_reap(false); // clean up jobs
return parse_execution_success; return parse_execution_success;
} }

View file

@ -684,7 +684,7 @@ int parser_t::eval_node(parsed_source_ref_t ps, tnode_t<T> node, const io_chain_
return 1; return 1;
} }
job_reap(0); // not sure why we reap jobs here job_reap(false); // not sure why we reap jobs here
// Start it up // Start it up
scope_block_t *scope_block = this->push_block<scope_block_t>(block_type); scope_block_t *scope_block = this->push_block<scope_block_t>(block_type);
@ -697,7 +697,7 @@ int parser_t::eval_node(parsed_source_ref_t ps, tnode_t<T> node, const io_chain_
exc.restore(); exc.restore();
this->pop_block(scope_block); this->pop_block(scope_block);
job_reap(0); // reap again job_reap(false); // reap again
return result; return result;
} }

View file

@ -2026,7 +2026,7 @@ void reader_run_command(parser_t &parser, const wcstring &cmd) {
gettimeofday(&time_before, NULL); gettimeofday(&time_before, NULL);
parser.eval(cmd, io_chain_t(), TOP); parser.eval(cmd, io_chain_t(), TOP);
job_reap(1); job_reap(true);
gettimeofday(&time_after, NULL); gettimeofday(&time_after, NULL);