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/
_______________________________________________
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"

Reply via email to