process.c: [DOC] improve docs for Process.groups

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
stomar 2018-10-12 20:01:52 +00:00
parent e7719a1c6a
commit 580a210350

View File

@ -6164,20 +6164,20 @@ maxgroups(void)
* call-seq: * call-seq:
* Process.groups -> array * Process.groups -> array
* *
* Get an <code>Array</code> of the gids of groups in the * Get an <code>Array</code> of the group IDs in the
* supplemental group access list for this process. * supplemental group access list for this process.
* *
* Process.groups #=> [27, 6, 10, 11] * Process.groups #=> [27, 6, 10, 11]
* *
* Note that this method is just a wrapper of getgroups(2). * Note that this method is just a wrapper of getgroups(2).
* This means that the following characteristics of * This means that the following characteristics of
* the results are completely depends on your system: * the result completely depend on your system:
* *
* - the result is sorted * - the result is sorted
* - the result includes effective GIDs * - the result includes effective GIDs
* - the result does not include duplicated GIDs * - the result does not include duplicated GIDs
* *
* You can certainly get a sorted unique GID list of * You can make sure to get a sorted unique GID list of
* the current process by this expression: * the current process by this expression:
* *
* Process.groups.uniq.sort * Process.groups.uniq.sort