# Io.Threaded.spawnPosix: implement passing file descriptors as stdio \(\#31379\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/46658257f458b7c3c95d7e10cbde85403f7bdb44)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 46658257f458b7c3c95d7e10cbde85403f7bdb44

Requested commit: 46658257f458b7c3c95d7e10cbde85403f7bdb44

Commit: 46658257f458b7c3c95d7e10cbde85403f7bdb44

Tree: dcc40a21a71128f1abb936e6af006153d4905d33

Author: breakmit

Committer: Andrew Kelley

## Message

```
Io.Threaded.spawnPosix: implement passing file descriptors as stdio (#31379)

`std.process.spawn`: remove the TODO for nonblocking file stdio and document the behavior.

Fix a bug in Io.Uring.dup2 where the function does not return on success

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31379
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: breakmit <breakmit@noreply.codeberg.org>
Co-committed-by: breakmit <breakmit@noreply.codeberg.org>

```

## Parents

- [30c8a759978c11620e90bf5117829c92c14bbf28](https://git.cafe/gitcafe/zig/commit/30c8a759978c11620e90bf5117829c92c14bbf28?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/46658257f458b7c3c95d7e10cbde85403f7bdb44?format=markdown)
