Browse Source

Document setuid/setgid sync resolution capability.

v0.7.4-release
Peter Griess 15 years ago
committed by Ryan Dahl
parent
commit
a9d8cac4b0
  1. 4
      doc/api.markdown

4
doc/api.markdown

@ -678,7 +678,7 @@ Gets the group identity of the process. (See getgid(2).) This is the numerical
### process.setgid(id)
Sets the group identity of the process. (See setgid(2).) This is the numerical group id, not the group name.
Sets the group identity of the process. (See setgid(2).) This accepts either a numerical ID or a groupname string. If a groupname is specified, this method blocks while resolving it to a numerical ID.
console.log('Current gid: ' + process.getgid());
try {
@ -699,7 +699,7 @@ Gets the user identity of the process. (See getuid(2).) This is the numerical u
### process.setuid(id)
Sets the user identity of the process. (See setuid(2).) This is the numerical userid, not the username.
Sets the user identity of the process. (See setuid(2).) This accepts either a numerical ID or a username string. If a username is specified, this method blocks while resolving it to a numerical ID.
console.log('Current uid: ' + process.getuid());
try {

Loading…
Cancel
Save