New system calls: pidfd_open() and close_range()
New system calls: pidfd_open() and close_range()
Posted May 28, 2019 2:50 UTC (Tue) by mirabilos (subscriber, #84359)In reply to: New system calls: pidfd_open() and close_range() by sbaugh
Parent article: New system calls: pidfd_open() and close_range()
Except it’s in the Korn Shell’s definition that only explicitly passed fds are passed to processes.
Except that sometimes you *do* want to close all other fds (sometimes even all fds, before reopening /dev/null as fd 0 and duping it to 1 and 2) for security reasons.
Programmers will shoot themselves into the foot, but if the rope is efficient… *shrug*
And if you don’t like it, it’s open source and you’ll be able to remove the call in your local copy of the software.