Commit 65991092f7

Alexandros Naskos <alex_naskos@hotmail.com>
2020-10-04 18:22:34
Correctly set uid and gid to void instead of null on wasi
1 parent 1d777e9
Changed files (1)
lib/std/child_process.zig
@@ -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,