summaryrefslogtreecommitdiff
path: root/sys/kern/kern_acct.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-01-21 05:42:05 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-01-21 05:42:05 +0000
commit9a302bd2ce6b791c5c6ebe5666355ec437ac1d03 (patch)
tree9195deecdf0ac1af03e69b4df6433353d6454326 /sys/kern/kern_acct.c
parent6c1f34eaf54d82d737e660ad764b624602f89481 (diff)
p_comm is the process's command and isn't per thread, so move it from
struct proc to struct process. ok deraadt@ kettenis@
Diffstat (limited to 'sys/kern/kern_acct.c')
-rw-r--r--sys/kern/kern_acct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c
index 7c339ab1577..692eaa511fe 100644
--- a/sys/kern/kern_acct.c
+++ b/sys/kern/kern_acct.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_acct.c,v 1.32 2016/03/19 12:04:15 natano Exp $ */
+/* $OpenBSD: kern_acct.c,v 1.33 2017/01/21 05:42:03 guenther Exp $ */
/* $NetBSD: kern_acct.c,v 1.42 1996/02/04 02:15:12 christos Exp $ */
/*-
@@ -176,7 +176,7 @@ acct_process(struct proc *p)
*/
/* (1) The name of the command that ran */
- memcpy(acct.ac_comm, p->p_comm, sizeof acct.ac_comm);
+ memcpy(acct.ac_comm, pr->ps_comm, sizeof acct.ac_comm);
/* (2) The amount of user and system time that was used */
calctsru(&pr->ps_tu, &ut, &st, NULL);