svn commit: r329660 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Tue Feb 20 20:19:39 UTC 2018


Author: mjg
Date: Tue Feb 20 20:19:38 2018
New Revision: 329660
URL: https://svnweb.freebsd.org/changeset/base/329660

Log:
  Fix reaping on process fd close broken after r329449
  
  The only consumer of proc_reap other than proc_to_reap was not updated
  to not PROC_SLOCK.
  
  Reported by:    Juan Ramon Molina Menor <listjm club.fr>

Modified:
  head/sys/kern/sys_procdesc.c

Modified: head/sys/kern/sys_procdesc.c
==============================================================================
--- head/sys/kern/sys_procdesc.c	Tue Feb 20 20:17:19 2018	(r329659)
+++ head/sys/kern/sys_procdesc.c	Tue Feb 20 20:19:38 2018	(r329660)
@@ -398,7 +398,6 @@ procdesc_close(struct file *fp, struct thread *td)
 			 * process's reference to the process descriptor when it
 			 * calls back into procdesc_reap().
 			 */
-			PROC_SLOCK(p);
 			proc_reap(curthread, p, NULL, 0);
 		} else {
 			/*


More information about the svn-src-all mailing list