Commit Graph

2 Commits (46513483cd96438f33a67fb870b784d1d1f55dd0)

Author SHA1 Message Date
isaacs 435ece5058 child_process: Support setting uid/gid by name 2011-01-11 13:54:51 -08:00
isaacs 6f5d95de6d child_process: Add gid/uid flags to spawn config
This is mostly working, but not completely ideal for two reasons.

1. Rather than emitting an error on the ChildProcess object when the
setgid/setuid fails, it is simply printing the error to stderr and
exiting.  The same happens with the cwd, so that's not completely
terrible.

2. I don't have a good test for this.  It fails with an EPERM if you try
to change the uid or gid as a non-root user.
2011-01-11 10:02:58 -08:00