diff options
author | emaste <emaste@FreeBSD.org> | 2007-03-23 04:01:08 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2007-03-23 04:01:08 +0000 |
commit | 1639f74854940b93f384f48a250acd15ab50a812 (patch) | |
tree | 4f5bae5625cd45bf43fd7f502adac6210a34fd3c /sys/kern/kern_proc.c | |
parent | 8078f08236de77239fc9cab825afa34468b890db (diff) | |
download | FreeBSD-src-1639f74854940b93f384f48a250acd15ab50a812.zip FreeBSD-src-1639f74854940b93f384f48a250acd15ab50a812.tar.gz |
Stop setting ki_ocomm (thread name) to the proc name by default, as nothing
in the base system relies on this any longer.
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r-- | sys/kern/kern_proc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 0eb4407..b5fe77d 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)); |