diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-03-27 04:12:29 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-03-27 04:12:29 +0000 |
commit | 9690548aeae804ef379f176c662b100288f938d3 (patch) | |
tree | 096df5456679fc1247e6966c762e00e19bf145ee | |
parent | 49e51cf9fa1eea6333c61c957f1819a8827aea6e (diff) |
Reorder a few struct process members to avoid copying some values
that will be reinitialized anyway. Delete some blank lines to
prevent the same error being repeated.
ok millert@ deraadt@
-rw-r--r-- | sys/sys/proc.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 5e2b5de593b..e6f4071719b 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.179 2014/03/26 05:23:41 guenther Exp $ */ +/* $OpenBSD: proc.h,v 1.180 2014/03/27 04:12:28 guenther Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -193,7 +193,6 @@ struct process { /* The following fields are all copied upon creation in process_new. */ #define ps_startcopy ps_limit - struct plimit *ps_limit; /* Process limits. */ struct pgrp *ps_pgrp; /* Pointer to process group. */ struct emul *ps_emul; /* Emulation information */ @@ -212,11 +211,10 @@ struct process { /* End area that is copied on creation. */ #define ps_endcopy ps_refcnt + int ps_refcnt; /* Number of references. */ struct timespec ps_start; /* starting time. */ struct timeout ps_realit_to; /* real-time itimer trampoline. */ - - int ps_refcnt; /* Number of references. */ }; #define ps_pid ps_mainproc->p_pid @@ -277,7 +275,6 @@ struct proc { /* The following fields are all zeroed upon creation in fork. */ #define p_startzero p_dupfd - int p_dupfd; /* Sideways return value from filedescopen. XXX */ int p_sigwait; /* signal handled by sigwait() */ @@ -313,7 +310,6 @@ struct proc { /* The following fields are all copied upon creation in fork. */ #define p_startcopy p_sigmask - sigset_t p_sigmask; /* Current signal mask. */ u_char p_priority; /* Process priority. */ @@ -333,7 +329,6 @@ struct proc { /* End area that is copied on creation. */ #define p_endcopy p_addr - struct user *p_addr; /* Kernel virtual addr of u-area */ struct mdproc p_md; /* Any machine-dependent fields. */ |