summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.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/init_main.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/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d030dcc0a02..e21a8306854 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.264 2017/01/01 07:00:56 jsg Exp $ */
+/* $OpenBSD: init_main.c,v 1.265 2017/01/21 05:42:03 guenther Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -293,7 +293,7 @@ main(void *framep)
p->p_stat = SONPROC;
pr->ps_nice = NZERO;
pr->ps_emul = &emul_native;
- strlcpy(p->p_comm, "swapper", sizeof(p->p_comm));
+ strlcpy(pr->ps_comm, "swapper", sizeof(pr->ps_comm));
/* Init timeouts. */
timeout_set(&p->p_sleep_to, endtsleep, p);