diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-18 13:54:33 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-18 13:54:33 -0600 |
| commit | 2e971a63ff71b0393623025b93ce17716aa938e3 (patch) | |
| tree | cb6a2d4b5c541ed7f5290aeb66e06a568bc6645f /tests/tools/git@git.abendless.com:/srv/git | |
| parent | bc0cab203252597d29cbce7fcba0ca4fadfbc846 (diff) | |
| download | zash-2e971a63ff71b0393623025b93ce17716aa938e3.tar.gz | |
z/OS: keep the terminal descriptor open for spawn
spawn() sets the child's foreground process group from inherit.ctlttyfd
after it has closed every descriptor from fd_count up, so the shell's
terminal descriptor -- which lives above the script's five or so -- was
already gone by then. Every external command in an interactive shell
died with EDC5113I Bad file descriptor, while the same command outside a
terminal worked.
Carry the terminal descriptor in the fd map, so the child has it open for
exactly the tcsetpgrp() spawn() performs.
Diffstat (limited to 'tests/tools/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions
