New system calls: pidfd_open() and close_range()
New system calls: pidfd_open() and close_range()
Posted May 24, 2019 12:49 UTC (Fri) by mezcalero (subscriber, #45103)In reply to: New system calls: pidfd_open() and close_range() by Sesse
Parent article: New system calls: pidfd_open() and close_range()
Well, for stdin/stdout/stderr that'll work, but it falls apart if the fds you want to keep and maybe later rearrange are already in the range you want to rearrange them to... The socket activation protocol systemd implements (i.e. LISTEN_FDS=) supports large numbers of fds, and systemd might create them a long time before actually activating things, hence they likely are in the range we want to move fds to.