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/ _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"