svn commit: r367638 - stable/12/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Fri Nov 13 13:38:08 UTC 2020
Author: mjg
Date: Fri Nov 13 13:38:08 2020
New Revision: 367638
URL: https://svnweb.freebsd.org/changeset/base/367638
Log:
MFC r367572:
Allow rtprio_thread to operate on threads of any process
Modified:
stable/12/sys/kern/kern_resource.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/kern_resource.c
==============================================================================
--- stable/12/sys/kern/kern_resource.c Fri Nov 13 13:36:46 2020 (r367637)
+++ stable/12/sys/kern/kern_resource.c Fri Nov 13 13:38:08 2020 (r367638)
@@ -303,8 +303,7 @@ sys_rtprio_thread(struct thread *td, struct rtprio_thr
td1 = td;
PROC_LOCK(p);
} else {
- /* Only look up thread in current process */
- td1 = tdfind(uap->lwpid, curproc->p_pid);
+ td1 = tdfind(uap->lwpid, -1);
if (td1 == NULL)
return (ESRCH);
p = td1->td_proc;
More information about the svn-src-stable-12
mailing list