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