diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-09-13 09:42:32 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-09-13 09:42:32 +0000 |
commit | f27f191dbc7b404372c68291cc1a94216749e9e3 (patch) | |
tree | 9b3ee5f7919f4a83c9b50ec3b758f9b2a8439ee5 /sys/kern | |
parent | cb353c2e238251ba8e2e5a0f35eac4d117254c3d (diff) |
Initialize sigacts0 before making them visible by setting ps->ps_sigacts.
OK mpi@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 8c35bb49f27..fed6be19435 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.300 2020/06/16 05:09:29 dlg Exp $ */ +/* $OpenBSD: init_main.c,v 1.301 2020/09/13 09:42:31 claudio Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -325,8 +325,8 @@ main(void *framep) /* Initialize signal state for process 0. */ signal_init(); + siginit(&sigacts0); pr->ps_sigacts = &sigacts0; - siginit(pr); /* Create the file descriptor table. */ p->p_fd = pr->ps_fd = fdinit(); |