]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #39514 - tbu-:pr_less_syscalls_fd, r=alexcrichton
authorCorey Farwell <coreyf@rwell.org>
Sun, 5 Feb 2017 17:45:10 +0000 (12:45 -0500)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2017 17:45:10 +0000 (12:45 -0500)
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.


Trivial merge