Use less syscalls in FileDesc::set_{nonblocking,cloexec}#39514
Use less syscalls in FileDesc::set_{nonblocking,cloexec}#39514bors merged 1 commit intorust-lang:masterfrom
FileDesc::set_{nonblocking,cloexec}#39514Conversation
Only set the flags if they differ from what the OS reported, use `FIONBIO` to atomically set the non-blocking IO flag on Linux.
|
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
|
@bors: r+ Thanks! |
|
📌 Commit efeb42b has been approved by |
|
|
|
@nagisa It's hard to find docs on |
…chton
Use less syscalls in `FileDesc::set_{nonblocking,cloexec}`
Only set the flags if they differ from what the OS reported, use
`FIONBIO` to atomically set the non-blocking IO flag on Linux.
…chton
Use less syscalls in `FileDesc::set_{nonblocking,cloexec}`
Only set the flags if they differ from what the OS reported, use
`FIONBIO` to atomically set the non-blocking IO flag on Linux.
…chton
Use less syscalls in `FileDesc::set_{nonblocking,cloexec}`
Only set the flags if they differ from what the OS reported, use
`FIONBIO` to atomically set the non-blocking IO flag on Linux.
|
You may also want to document, in the documentation for |
|
@joshtriplett This is private API as far as I can tell, and it's only used in places where we already pass |
|
@tbu- Ah, OK; thanks for the clarification. |
Only set the flags if they differ from what the OS reported, use
FIONBIOto atomically set the non-blocking IO flag on Linux.