summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-03-13 09:25:22 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-03-13 09:25:22 +0000
commit2f0414cc2da561d9616f1da323127f6f95380bea (patch)
treeb1361349a39fcd14ff18cf4fc67f544e8aeee477 /sys/kern/init_main.c
parent90f773a993ccff75c39800af7de4b3368cc54d51 (diff)
Rename "sigacts" flag field to avoid conflict with the "process" one.
This shows that atomic_* operations should not be necessery to write to this field unlike with the process one. The advantage of using a somewhat-unique prefix for struct member is moot when multiple definitions use the same prefix :o) From Amit Kulkarni, ok claudio@
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 2be1d41b8ab..20b2749cf88 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.296 2020/02/25 16:55:33 visa Exp $ */
+/* $OpenBSD: init_main.c,v 1.297 2020/03/13 09:25:21 mpi Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -639,7 +639,7 @@ start_init(void *arg)
check_console(p);
/* process 0 ignores SIGCHLD, but we can't */
- p->p_p->ps_sigacts->ps_flags = 0;
+ p->p_p->ps_sigacts->ps_sigflags = 0;
/*
* Need just enough stack to hold the faked-up "execve()" arguments.