Grabbing file descriptors with pidfd_getfd()
Grabbing file descriptors with pidfd_getfd()
Posted Jan 14, 2020 14:52 UTC (Tue) by dona73110 (guest, #113155)Parent article: Grabbing file descriptors with pidfd_getfd()
You sure can open a pipe that another process has open, by opening /proc/PID/fd/FD ... open(2) opens the actual files that these symlinks represent, which in the case of deleted files or pipes, etc, do not correspond to the path in the symlink target returned by readlink.
Posted Jan 29, 2020 1:35 UTC (Wed)
by cyphar (subscriber, #110703)
[Link]
Grabbing file descriptors with pidfd_getfd()
