Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
termio/exec: if pty fd HUP, end read thread (ghostty-org#5351)
Fixes ghostty-org#4884 When our command exits, it will close the pty slave fd. This will trigger a HUP on our poll. Previously, we only checked for IN. When a fd is closed, IN triggers forever which would leave to an infinite loop and 100% CPU. Now, detect the HUP and exit the read thread.
- Loading branch information