Use a u_int for p_lock instead of a char: this avoids a (somewhat
unlikely but not impossible given modern thread counts) wrap-around, and the compiler was padding it out to an int (at least) anyway. MFC after: 3 days (but confirm ABI impact)
This commit is contained in:
parent
6f63bf4edf
commit
ffe96ceede
@ -491,7 +491,7 @@ struct proc {
|
||||
struct vnode *p_tracevp; /* (c + o) Trace to vnode. */
|
||||
struct ucred *p_tracecred; /* (o) Credentials to trace with. */
|
||||
struct vnode *p_textvp; /* (b) Vnode of executable. */
|
||||
char p_lock; /* (c) Proclock (prevent swap) count. */
|
||||
u_int p_lock; /* (c) Proclock (prevent swap) count. */
|
||||
struct sigiolst p_sigiolst; /* (c) List of sigio sources. */
|
||||
int p_sigparent; /* (c) Signal to parent on exit. */
|
||||
int p_sig; /* (n) For core dump/debugger XXX. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user