Distinguish between function and block IO for fork debug log messages

This commit is contained in:
Mahmoud Al-Qudsi 2018-02-18 16:00:01 -06:00
parent fedce06687
commit 50541544f2

View file

@ -896,7 +896,8 @@ void exec_job(parser_t &parser, job_t *j) {
if (block_output_io_buffer->out_buffer_size() > 0) {
// We don't have to drain threads here because our child process is simple.
if (!do_fork(false, "internal block or function", [&] {
const char *fork_reason = p->type == INTERNAL_BLOCK_NODE ? "internal block io" : "internal function io";
if (!do_fork(false, fork_reason, [&] {
exec_write_and_exit(block_output_io_buffer->fd, buffer, count, status);
})) {
break;