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:
jhb 2000-12-15 00:10:32 +00:00
parent 3886aa1d19
commit 03f20c1a84

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. */