mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Distinguish between function and block IO for fork debug log messages
This commit is contained in:
parent
fedce06687
commit
50541544f2
1 changed files with 2 additions and 1 deletions
|
@ -896,7 +896,8 @@ void exec_job(parser_t &parser, job_t *j) {
|
||||||
|
|
||||||
if (block_output_io_buffer->out_buffer_size() > 0) {
|
if (block_output_io_buffer->out_buffer_size() > 0) {
|
||||||
// We don't have to drain threads here because our child process is simple.
|
// 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);
|
exec_write_and_exit(block_output_io_buffer->fd, buffer, count, status);
|
||||||
})) {
|
})) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue