Skip to content

Open files with O_CLOEXEC flag #493

Description

@fzhinkin

O_CLOEXEC forces file descriptors closing on invocation of functions from the exec-family. There are a few reasons why it's a good idea ranging from resources leakage to improved security.

It's a good idea to use this flag when opening file sinks and sources.

Inspired by whyoleg/cryptography-kotlin#138

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions