Locking change: lock p_cred with the proc mutex (c) instead of assuming

that it doesn't change after process creation.
This commit is contained in:
John Baldwin 2000-12-15 00:10:32 +00:00
parent 0ea11f3f52
commit ec244c5695

View File

@ -145,7 +145,7 @@ struct proc {
LIST_ENTRY(proc) p_list; /* (d) List of all processes. */
/* substructures: */
struct pcred *p_cred; /* (b) Process owner's identity. */
struct pcred *p_cred; /* (c) Process owner's identity. */
struct filedesc *p_fd; /* (b) Ptr to open files structure. */
struct pstats *p_stats; /* (b) Accounting/statistics (CPU). */
struct plimit *p_limit; /* (m) Process limits. */