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>
This commit is contained in:
Mateusz Guzik 2018-02-20 20:19:38 +00:00
parent c2e79753fe
commit 862db53fb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329660

View File

@ -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 {
/*