back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/queue.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2025-07-28 01:19:54 +0300
committerscratko <m@scratko.xyz>2025-07-28 01:19:54 +0300
commit0de355ebbf6d9eb9ab673da22eb18cbb01d005f8 (patch)
tree197d81a0d4df5c728217cc3ebaa255678d621b86 /queue.h
parent765c24a70be0b968a08bbd3c26b1644843863fcd (diff)
downloadshell-0de355ebbf6d9eb9ab673da22eb18cbb01d005f8.tar.gz
shell-0de355ebbf6d9eb9ab673da22eb18cbb01d005f8.tar.bz2
shell-0de355ebbf6d9eb9ab673da22eb18cbb01d005f8.zip
Revise subshell execution and terminal group handlingshell-VII
find_end_subshell_before_cur_pos() now accounts for offset caused by two-character tokens (|| and &&). Added many explanatory comments. Modified or removed some fields of the params structure that affected pipe and subshell behavior (e.g., pgid for multiple processes, file descriptors). Changed logic for setting the current terminal process group. Removed side effect in the conditional operator inside special_token_handling() that made the code harder to read. Removed the functions identify_general_pgid() and identify_general_pipe_pgid(). Replaced them with a single function: set_foreground_group(). make_pipeline() now also checks for subshell_before before executing the pipeline. Major changes to the functions make_pipeline(), make_subshell(), and run_external_program(). Subshell exit code now depends on the success or failure of executed programs when using logical operators (|| and &&).
Diffstat (limited to 'queue.h')
0 files changed, 0 insertions, 0 deletions