New system calls: pidfd_open() and close_range()
New system calls: pidfd_open() and close_range()
Posted May 23, 2019 16:38 UTC (Thu) by ju3Ceemi (subscriber, #102464)Parent article: New system calls: pidfd_open() and close_range()
Why not create a call to get a list of opened fd ?
Using it, the userspace could do whatever it wants : filtering, closing some or others etc
Using it, the userspace could do whatever it wants : filtering, closing some or others etc
I suppose "Closing descriptors in a loop in user space is slower" because it basically bruteforce the whole fd-space, calling close() for every fd, even if there is none