Module Name: src Committed By: dyoung Date: Fri Jul 10 23:07:55 UTC 2009 Modified Files: src/sys/kern: kern_lwp.c Log Message: In lwp_create(), take a reference to l2's filedesc_t instead of taking a reference to curlwp's by calling fd_hold(). If lwp_create() is called from fork1(), then l2 != curlwp, but l2's and not curlwp's filedesc_t whose reference we should take.
fd_hold() only seems to have only been called from this one place. perhaps it should simply grow a "struct lwp *" parameter. .mrg.