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

Enable close-on-exec on socket #651

Merged
merged 2 commits into from
May 24, 2023

Commits on May 14, 2023

  1. Enable close-on-exec flag when opening the tun device node.

    When the close-on-exec flag is set, the file descriptor is automatically
    closed upon a successful exec. This keeps a child process--such as one
    started using system()--from inheriting the file descriptor.
    
    Signed-off-by: Tom Carroll <[email protected]>
    tomc797 committed May 14, 2023
    Configuration menu
    Copy the full SHA
    30e4605 View commit details
    Browse the repository at this point in the history
  2. Set socket's close-on-exec flag.

    Signed-off-by: Tom Carroll <[email protected]>
    tomc797 committed May 14, 2023
    Configuration menu
    Copy the full SHA
    24176d2 View commit details
    Browse the repository at this point in the history