Author: mjg Date: Sun Aug 17 07:05:30 2014 New Revision: 270089 URL: http://svnweb.freebsd.org/changeset/base/270089
Log: MFC r259407: proc exit: don't take PROC_LOCK while freeing rlimits Code wishing to check rlimits of some process should check whether it is exiting first, which current consumers do. Modified: stable/10/sys/kern/kern_exit.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/kern_exit.c ============================================================================== --- stable/10/sys/kern/kern_exit.c Sun Aug 17 07:00:47 2014 (r270088) +++ stable/10/sys/kern/kern_exit.c Sun Aug 17 07:05:30 2014 (r270089) @@ -387,10 +387,8 @@ exit1(struct thread *td, int rv) /* * Release our limits structure. */ - PROC_LOCK(p); plim = p->p_limit; p->p_limit = NULL; - PROC_UNLOCK(p); lim_free(plim); tidhash_remove(td); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"