https://github.com/hniksic/rust-subprocess/issues/61 adds a new API for which I currently have a workaround using libc.