Opened 5 years ago

Last modified 44 hours ago

#15219 new enhancement

atomic FD_CLOEXEC support

Reported by: mmu_man Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Many POSIX calls have variants to support atomic setting of CLOEXEC, to avoid race conditions when setting after the FDs have been created.

Some apps require some, others work better when they are present.

Change History (3)

comment:1 by mmu_man, 5 years ago

NBDKit will require some.

comment:2 by mmu_man, 5 years ago

We also might want to support O_CLOEXEC (even by default ?) on queries btw.

comment:3 by waddlesplash, 44 hours ago

Component: - GeneralSystem/POSIX

We now have accept4 (and SOCK_CLOEXEC), dup3, pipe2.

I think MSG_CMSG_CLOEXEC is the only major thing we are still missing?

Note: See TracTickets for help on using tickets.