|
@@ -547,6 +547,10 @@ _process_start :: proc(desc: Process_Desc) -> (process: Process, err: Error) {
|
|
|
if _, errno = linux.dup2(stderr_fd, STDERR); errno != .NONE {
|
|
|
write_errno_to_parent_and_abort(child_pipe_fds[WRITE], errno)
|
|
|
}
|
|
|
+ if dir_fd != linux.AT_FDCWD {
|
|
|
+ errno = linux.fchdir(dir_fd)
|
|
|
+ assert(errno == nil)
|
|
|
+ }
|
|
|
|
|
|
errno = linux.execveat(dir_fd, exe_path, &cargs[0], env)
|
|
|
assert(errno != nil)
|