svn commit: r291114 - head/lib/libc/gen

Andrey Chernov ache at freebsd.org
Sat Nov 21 00:08:29 UTC 2015


On 21.11.2015 2:57, Ravi Pokala wrote:
> There's two different things at play - userland resources and kernel resources. Both "FILE *iop" and "struct pid *cur" are userland, while the descriptors in "pdes" are kernel. We clean up the descriptors in "pdes" in call cases, so we're not leaking kernel resources. You're right that "iop" (and "cur", which you didn't mention) appear to be leaked in the child, in that they're not explicitly cleaned up. But they get wiped away by the _execve(), so it doesn't matter.

See my next reply. I care not about userland resources, but about
fdopen() ability to set FD_CLOEXEC.

-- 
http://ache.vniz.net/


More information about the svn-src-all mailing list