Skip to content

[Bug]: many open() without O_CLOEXEC #9753

@socketpair

Description

@socketpair

Contact Details

socketpair@gmail.com

Version

main branch

Description

In multithreaded programs, O_CLOEXEC for all file descriptors is a must. I just searched for O_RDONLY and O_RDWR and found few places.

Actually, I searched for open("/etc/ssl/certs/ca-bundle.crt", O_RDONLY), but found other places in sources.

Reproduction steps

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions