summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-08-22 18:12:24 +0000
committerjhb <jhb@FreeBSD.org>2016-08-22 18:12:24 +0000
commitdece9cd3cae618e3273072c7e301445fc2c6132d (patch)
tree54742fef792db1639b3d3a50a7f2f4b29c225c37
parentf7f420d73c7696e84edc9978b693f48430c0d09f (diff)
downloadFreeBSD-src-dece9cd3cae618e3273072c7e301445fc2c6132d.zip
FreeBSD-src-dece9cd3cae618e3273072c7e301445fc2c6132d.tar.gz
MFC 302379: Correct locking annotation for p_comm.
p_comm is changed during exec, it is not read-only after fork.
-rw-r--r--sys/sys/proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index cca045f..59c75c5 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -564,7 +564,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. */
void *p_pad0;
struct sysentvec *p_sysent; /* (b) Syscall dispatch info. */
struct pargs *p_args; /* (c) Process arguments. */
OpenPOWER on IntegriCloud