Neat idea, we noticed that PPID still referenced it as well--however if the parent exits before the child uses the FD then it may not be consistent. $^F or fcntl for CLOEXEC is the solution here.
In reply to Re^2: Leaking a file descriptor into a child to use with /proc/self/fd/3
by ewheeler
in thread Leaking a file descriptor into a child to use with /proc/self/fd/3
by ewheeler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |