This is necessary to replace the uid/gid arguments to child_process.spawn in Node, which apparently started silently not working as of 0.6.
I believe uid_t is generally uint32 on linux, it may not be wise to use int to describe uid/gid
gid_t is a type, right?
als, this could be backported to 0.6 as uv_spawn2, similar to what we did for 64 bit file offsets.
Updated to use uid_t and gid_t. It's still using -1 as the sentinel value, so if you have a user with a uid of 0xffffffff or whatever, you won't be able to setuid to them, which seems rare and strange enough to not care about.
Fix #388 Implement uid/gid argument to uv_spawn
spawn: uid/gid Review updates