New system calls: pidfd_open() and close_range()
New system calls: pidfd_open() and close_range()
Posted May 23, 2019 23:45 UTC (Thu) by cyphar (subscriber, #110703)In reply to: New system calls: pidfd_open() and close_range() by rweikusat2
Parent article: New system calls: pidfd_open() and close_range()
Right, but the point is that you can always disable O_CLOEXEC safely through fnctl(2) but you cannot safely enable it. So really, making O_CLOEXEC the default seems to have no real downside other than inconsistencies with existing syscalls -- but open(2) is already inconsistent with almost every other syscall by ignoring unknown flags instead of giving -EINVAL.