diff options
| author | 2017-01-24 00:58:55 +0000 | |
|---|---|---|
| committer | 2017-01-24 00:58:55 +0000 | |
| commit | 69e7eddb8e077ffc9654dbfe795f357daa3b9d84 (patch) | |
| tree | b7965d6437aedc1aa1f6bf0f6fecb7611009752a /sys/kern/sys_process.c | |
| parent | Fix typo in variable name. (diff) | |
| download | wireguard-openbsd-69e7eddb8e077ffc9654dbfe795f357daa3b9d84.tar.xz wireguard-openbsd-69e7eddb8e077ffc9654dbfe795f357daa3b9d84.zip | |
Rename pfind(9) into tfind(9) to reflect that it deals with threads.
While here document prfind(9.
with and ok guenther@
Diffstat (limited to 'sys/kern/sys_process.c')
| -rw-r--r-- | sys/kern/sys_process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 7c7b261cba3..90c67769caa 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.74 2016/11/07 00:26:33 guenther Exp $ */ +/* $OpenBSD: sys_process.c,v 1.75 2017/01/24 00:58:55 mpi Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -156,7 +156,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval) case PT_SETXMMREGS: #endif if (SCARG(uap, pid) > THREAD_PID_OFFSET) { - t = pfind(SCARG(uap, pid) - THREAD_PID_OFFSET); + t = tfind(SCARG(uap, pid) - THREAD_PID_OFFSET); if (t == NULL) return (ESRCH); tr = t->p_p; @@ -316,7 +316,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval) if (error) return (error); - t = pfind(pts.pts_tid - THREAD_PID_OFFSET); + t = tfind(pts.pts_tid - THREAD_PID_OFFSET); if (t == NULL || ISSET(t->p_flag, P_WEXIT)) return (ESRCH); if (t->p_p != tr) |
