svn commit: r302379 - head/sys/sys
John Baldwin
jhb at FreeBSD.org
Wed Jul 6 18:55:47 UTC 2016
Author: jhb
Date: Wed Jul 6 18:55:46 2016
New Revision: 302379
URL: https://svnweb.freebsd.org/changeset/base/302379
Log:
Correct locking annotation for p_comm.
p_comm is changed during exec, it is not read-only after fork.
Pointed out by: rwatson
Approved by: re (gjb, kib)
MFC after: 1 week
Modified:
head/sys/sys/proc.h
Modified: head/sys/sys/proc.h
==============================================================================
--- head/sys/sys/proc.h Wed Jul 6 17:46:49 2016 (r302378)
+++ head/sys/sys/proc.h Wed Jul 6 18:55:46 2016 (r302379)
@@ -602,7 +602,7 @@ struct proc {
u_int p_magic; /* (b) Magic number. */
int p_osrel; /* (x) osreldate for the
binary (from ELF note, if any) */
- char p_comm[MAXCOMLEN + 1]; /* (b) Process name. */
+ char p_comm[MAXCOMLEN + 1]; /* (x) Process name. */
struct sysentvec *p_sysent; /* (b) Syscall dispatch info. */
struct pargs *p_args; /* (c) Process arguments. */
rlim_t p_cpulimit; /* (c) Current CPU limit in seconds. */
More information about the svn-src-all
mailing list