feat(unstable): allow specifing gid and uid for subprocess (#11586)

This commit is contained in:
Leo K 2021-09-13 19:26:23 +02:00 committed by GitHub
parent 274ff6c469
commit a655a0f3e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 90 additions and 0 deletions

View file

@ -102,6 +102,8 @@
cwd = undefined,
clearEnv = false,
env = {},
gid = undefined,
uid = undefined,
stdout = "inherit",
stderr = "inherit",
stdin = "inherit",
@ -114,6 +116,8 @@
cwd,
clearEnv,
env: ObjectEntries(env),
gid,
uid,
stdin: isRid(stdin) ? "" : stdin,
stdout: isRid(stdout) ? "" : stdout,
stderr: isRid(stderr) ? "" : stderr,