On Wednesday, April 06, 2011 12:59:55 pm Edward Tomasz Napierala wrote:
> Author: trasz
> Date: Wed Apr 6 16:59:54 2011
> New Revision: 220388
> URL: http://svn.freebsd.org/changeset/base/220388
>
> Log:
> Add ucred pointer to the SysV-related memory structures. This is required
> for racct.
>
> Note that after this commit, ipcs(1) needs to be rebuilt. Otherwise, it
> will
> fail with "ipcs: sysctlbyname: kern.ipc.msqids: Cannot allocate memory".
>
> Sponsored by: The FreeBSD Foundation
> Reviewed by: kib (earlier version)
Please use this idiom:
foo->cred = crhold(bar->cred);
instead of:
crhold(bar->cred);
foo->cred = bar->cred;
I think this cleaner in terms of readability and semantics.
--
John Baldwin
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"