From 50541544f247154d556cf9c60bd80ee92b1958c0 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 18 Feb 2018 16:00:01 -0600 Subject: [PATCH] Distinguish between function and block IO for fork debug log messages --- src/exec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exec.cpp b/src/exec.cpp index 69c38f7aa..2263acdf9 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -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;