bytecodealliance / bytecodealliance/rustix

Add the ability to set HANDLE_FLAG_INHERIT for Windows sockets

Open
#888 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
2.1k
Forks
294
Avg merge
4h 7m
Merged PRs (30d)
2

Description

This is basically the Windows equivalent of CLOEXEC. Two ways of going about this:

- Add a `INHERIT` flag to `SocketFlags` on Windows.
- Make the value for `CLOEXEC` on Windows be `HANDLE_FLAG_INHERIT`.

The second option might make more sense but also might be a footgun.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.