[ruby-core:118881] [Ruby master Bug#20682] Slave PTY output is lost after a child process exits in macOS