https://bugs.kde.org/show_bug.cgi?id=360752

--- Comment #5 from John Reiser <jrei...@bitwagon.com> ---
For psinfo, I see that it changes, so I guess that needs a permanent fd.

For cmdline and auxv, it still looks to me as if the separate fd could be
avoided nearly all the time, because the vast majority of processes never refer
to those files.  Cook the data into a memory block, and create the file (and
fd) from the memory block only upon an actual user open().  Of course for a
process that does such an open, then the fd is needed.  But it would not be
needed across execve(), for instance, so the maximum number of simultaneous
safe fd might be reduced by non-overlapping lifetimes.  This might be a future
optimization.  For now, just apply the patch.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to