Repository navigation
Adds drain_on_exit: true on Unix. With it enabled, on_exit waits until the PTY reader has delivered all output and closed. The default remains false.
There is no timeout: a descendant holding the PTY open can delay on_exit indefinitely. Windows rejects enabling the option.
Based on @ctram's work in #31, with documentation and a regression test for descendants holding the PTY open in #33.