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

Andrey Chernov ache at freebsd.org
Fri Nov 20 23:20:26 UTC 2015


On 21.11.2015 1:36, Ravi Pokala wrote:
>   Move fdopen() up near other resource allocation like malloc(); do proper
>   deallocation on failure later on in the function.

Incorrect. Old code calls fdopen() only in the parent, new one calls
fdopen() before fork(), so its results shared by both parent and child,
which is wrong for child() case.

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


More information about the svn-src-head mailing list