summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2007-03-23 04:01:08 +0000
committerEd Maste <emaste@FreeBSD.org>2007-03-23 04:01:08 +0000
commit13b762a3046c781f39a176952c7e3c3d5faa8c6c (patch)
tree4f5bae5625cd45bf43fd7f502adac6210a34fd3c
parentde5f4525ea4c385a05362413c848711e90aafd6f (diff)
Notes
-rw-r--r--sys/kern/kern_proc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index 0eb44076d32b..b5fe77de6203 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -732,15 +732,8 @@ fill_kinfo_proc_only(struct proc *p, struct kinfo_proc *kp)
kp->ki_tsid = tp->t_session->s_sid;
} else
kp->ki_tdev = NODEV;
- if (p->p_comm[0] != '\0') {
+ if (p->p_comm[0] != '\0')
strlcpy(kp->ki_comm, p->p_comm, sizeof(kp->ki_comm));
- /*
- * Temporarily give the thread a default name of the process
- * as it's erroneously used in the snmp code.
- * Remove this when that is fixed. (soon I'm told)
- */
- strlcpy(kp->ki_ocomm, p->p_comm, sizeof(kp->ki_ocomm));
- }
if (p->p_sysent && p->p_sysent->sv_name != NULL &&
p->p_sysent->sv_name[0] != '\0')
strlcpy(kp->ki_emul, p->p_sysent->sv_name, sizeof(kp->ki_emul));