Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Avoid the WSA_FLAG_NO_HANDLE_INHERIT option #26658

Merged
merged 1 commit into from
Jul 2, 2015

Commits on Jul 1, 2015

  1. std: Avoid the WSA_FLAG_NO_HANDLE_INHERIT option

    This was added after Windows 7 SP1, so it's not always available. Instead use
    the `SetHandleInformation` function to flag a socket as not inheritable. This is
    not atomic with respect to creating new processes, but it mirrors what Unix does
    with respect to possibly using the atomic option in the future.
    
    Closes rust-lang#26543
    alexcrichton committed Jul 1, 2015
    Configuration menu
    Copy the full SHA
    8890089 View commit details
    Browse the repository at this point in the history