enum pass

This commit is contained in:
Colin Davidson
2025-07-29 11:48:58 -07:00
parent b5629aeed9
commit fe2b48dec4
4 changed files with 115 additions and 31 deletions
+2 -2
View File
@@ -695,13 +695,13 @@ _spawn :: #force_inline proc(path: string, args: []string, envs: []string, file_
}
child_pid: posix.pid_t
status: i32
status: posix.Errno
if is_spawnp {
status = posix.posix_spawnp(&child_pid, path_cstr, file_actions, attributes, raw_data(args_cstrs), raw_data(envs_cstrs))
} else {
status = posix.posix_spawn(&child_pid, path_cstr, file_actions, attributes, raw_data(args_cstrs), raw_data(envs_cstrs))
}
if status != 0 {
if status != .NONE {
return 0, Platform_Error(status)
}
return child_pid, nil