Skip to content
Snippets Groups Projects
  • Jack Nagel's avatar
    bac6533d
    Set close-on-exec on lock file descriptors · bac6533d
    Jack Nagel authored
    The formula locks used by the installer and commands like link and
    unlink are backed by open files and flock(). The open file descriptors
    are thus leaked to any subprocesses. This can result in weird behavior
    in programs spawned from formula that do not expect to inherit these
    descriptors.
    
    Fix this by setting close-on-exec on the lock file descriptors.
    
    Fixes Homebrew/homebrew#21486.
    bac6533d
    History
    Set close-on-exec on lock file descriptors
    Jack Nagel authored
    The formula locks used by the installer and commands like link and
    unlink are backed by open files and flock(). The open file descriptors
    are thus leaked to any subprocesses. This can result in weird behavior
    in programs spawned from formula that do not expect to inherit these
    descriptors.
    
    Fix this by setting close-on-exec on the lock file descriptors.
    
    Fixes Homebrew/homebrew#21486.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.