doc: child_process: document uid and gid spawn() options
authorOlivier Lalonde <olalonde@gmail.com>
Tue, 23 Oct 2012 16:45:10 +0000 (00:45 +0800)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 23 Oct 2012 23:24:00 +0000 (01:24 +0200)
doc/api/child_process.markdown

index d4616e6..4417ed7 100644 (file)
@@ -250,6 +250,8 @@ there is no IPC channel keeping it alive. When calling this method the
     for stdio.  (See below)
   * `env` {Object} Environment key-value pairs
   * `detached` {Boolean} The child will be a process group leader.  (See below)
+  * `uid` {Number} Sets the user identity of the process. (See setuid(2).)
+  * `gid` {Number} Sets the group identity of the process. (See setgid(2).)
 * return: {ChildProcess object}
 
 Launches a new process with the given `command`, with  command line arguments in `args`.