native: use `real_pipe()` and `read_close()`
Merge pull request #1322 from Kijewski/native-pipe-and-close

native: use `real_pipe()` and `read_close()`