Correctly set uid and gid to void instead of null on wasi

master
Alexandros Naskos 2020-10-04 19:22:34 +03:00 committed by Andrew Kelley
parent 1d777e9958
commit 65991092f7
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ pub const ChildProcess = struct {
.term = null,
.env_map = null,
.cwd = null,
.uid = if (builtin.os.tag == .windows) {} else null,
.gid = if (builtin.os.tag == .windows) {} else null,
.uid = if (builtin.os.tag == .windows or builtin.os.tag == .wasi) {} else null,
.gid = if (builtin.os.tag == .windows or builtin.os.tag == .wasi) {} else null,
.stdin = null,
.stdout = null,
.stderr = null,