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