proc: remove zpfind
It is not used by anything. If someone wants it back it should be reimplemented to use the proc hash. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
818d755318
commit
2319489b6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351559
@ -1294,25 +1294,6 @@ pstats_free(struct pstats *ps)
|
||||
free(ps, M_SUBPROC);
|
||||
}
|
||||
|
||||
/*
|
||||
* Locate a zombie process by number
|
||||
*/
|
||||
struct proc *
|
||||
zpfind(pid_t pid)
|
||||
{
|
||||
struct proc *p;
|
||||
|
||||
sx_slock(&zombproc_lock);
|
||||
LIST_FOREACH(p, &zombproc, p_list) {
|
||||
if (p->p_pid == pid) {
|
||||
PROC_LOCK(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
sx_sunlock(&zombproc_lock);
|
||||
return (p);
|
||||
}
|
||||
|
||||
#ifdef COMPAT_FREEBSD32
|
||||
|
||||
/*
|
||||
|
@ -994,7 +994,6 @@ struct proc *pfind(pid_t); /* Find process by id. */
|
||||
struct proc *pfind_any(pid_t); /* Find (zombie) process by id. */
|
||||
struct proc *pfind_any_locked(pid_t pid); /* Find process by id, locked. */
|
||||
struct pgrp *pgfind(pid_t); /* Find process group by id. */
|
||||
struct proc *zpfind(pid_t); /* Find zombie process by id. */
|
||||
void pidhash_slockall(void); /* Shared lock all pid hash lists. */
|
||||
void pidhash_sunlockall(void); /* Shared unlock all pid hash lists. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user