Commit 228f977
Close the pty master before the slave in ScreenTests
On macOS, closing the pty slave while the master is still open blocks until
the slave's pending output drains. Closing the master first stops the reader
thread and leaves nothing for the slave close to wait for.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6d48237 commit 228f977
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1795 | 1795 | | |
1796 | 1796 | | |
1797 | 1797 | | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1802 | 1801 | | |
1803 | 1802 | | |
1804 | 1803 | | |
1805 | 1804 | | |
1806 | | - | |
| 1805 | + | |
| 1806 | + | |
1807 | 1807 | | |
| 1808 | + | |
1808 | 1809 | | |
1809 | 1810 | | |
1810 | 1811 | | |
| |||
0 commit comments