Author: jhb Date: Mon Aug 22 18:12:24 2016 New Revision: 304619 URL: https://svnweb.freebsd.org/changeset/base/304619
Log: MFC 302379: Correct locking annotation for p_comm. p_comm is changed during exec, it is not read-only after fork. Modified: stable/9/sys/sys/proc.h Directory Properties: stable/9/sys/ (props changed) stable/9/sys/sys/ (props changed) Changes in other areas also in this revision: Modified: stable/10/sys/sys/proc.h Directory Properties: stable/10/ (props changed) Modified: stable/9/sys/sys/proc.h ============================================================================== --- stable/9/sys/sys/proc.h Mon Aug 22 17:53:18 2016 (r304618) +++ stable/9/sys/sys/proc.h Mon Aug 22 18:12:24 2016 (r304619) @@ -558,7 +558,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 pgrp *p_pgrp; /* (c + e) Pointer to process group. */ struct sysentvec *p_sysent; /* (b) Syscall dispatch info. */ struct pargs *p_args; /* (c) Process arguments. */ _______________________________________________ svn-src-stable-9@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-9 To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"