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

[Experimental] Pitchfork::Info.close_all_fds! #56

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Commits on Aug 1, 2023

  1. [Experimental] Pitchfork::Info.close_all_fds!

    Ensuring that an application is fork safe can be complex, and
    in case of mistake, one of the error condition is shared file
    descriptors, causing one worker to read packets from another
    which could have dire consequences.
    
    Rather than to track down all the file descriptors that need
    reopening, `close_all_fds!` allows to automatically close all
    file descriptors that aren't explicitly marked as needing to
    be kept.
    
    And in case of mistake, the error condition is that trying to
    read or write into that file descriptor will fail, which is
    much less critical than to read packets from another worker.
    byroot committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    5f65286 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. Configuration menu
    Copy the full SHA
    4a59e59 View commit details
    Browse the repository at this point in the history