mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Bandaid for world. jhb gets the pointy hat here and he needs to look at
this. Approved by: re (scottl)
This commit is contained in:
parent
9dd5fb023d
commit
e472fbeee2
1 changed files with 4 additions and 0 deletions
|
|
@ -100,7 +100,9 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
|
|||
struct session sess;
|
||||
struct tty tty;
|
||||
struct vmspace vmspace;
|
||||
#ifdef BAD_JHB_NO_COOKIE
|
||||
struct procsig procsig;
|
||||
#endif
|
||||
struct pstats pstats;
|
||||
struct ucred ucred;
|
||||
struct thread mtd;
|
||||
|
|
@ -192,6 +194,7 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
|
|||
kp->ki_textvp = proc.p_textvp;
|
||||
kp->ki_fd = proc.p_fd;
|
||||
kp->ki_vmspace = proc.p_vmspace;
|
||||
#ifdef BAD_JHB_NO_COOKIE
|
||||
if (proc.p_procsig != NULL) {
|
||||
if (KREAD(kd, (u_long)proc.p_procsig, &procsig)) {
|
||||
_kvm_err(kd, kd->program,
|
||||
|
|
@ -201,6 +204,7 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
|
|||
kp->ki_sigignore = procsig.ps_sigignore;
|
||||
kp->ki_sigcatch = procsig.ps_sigcatch;
|
||||
}
|
||||
#endif
|
||||
if ((proc.p_sflag & PS_INMEM) && proc.p_stats != NULL) {
|
||||
if (KREAD(kd, (u_long)proc.p_stats, &pstats)) {
|
||||
_kvm_err(kd, kd->program,
|
||||
|
|
|
|||
Loading…
Reference in a new issue