Date: Fri, 11 May 2012 23:41:52 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235300 - head/sys/kern Message-ID: <201205112341.q4BNfqva005732@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Fri May 11 23:41:52 2012 New Revision: 235300 URL: http://svn.freebsd.org/changeset/base/235300 Log: Release proc lock after setting signal queue. PR: kern/167727 Submitted by: Jinjun Gao <gjinjun gmail com> MFC after: 2 weeks Modified: head/sys/kern/kern_kthread.c Modified: head/sys/kern/kern_kthread.c ============================================================================== --- head/sys/kern/kern_kthread.c Fri May 11 23:36:26 2012 (r235299) +++ head/sys/kern/kern_kthread.c Fri May 11 23:41:52 2012 (r235300) @@ -182,6 +182,7 @@ kproc_suspend(struct proc *p, int timo) return (EINVAL); } SIGADDSET(p->p_siglist, SIGSTOP); + PROC_UNLOCK(p); wakeup(p); return msleep(&p->p_siglist, &p->p_mtx, PPAUSE | PDROP, "suspkp", timo); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205112341.q4BNfqva005732>