diff options
| author | Rocknest <35231115+Rocknest@users.noreply.github.com> | 2019-10-17 01:57:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-17 01:57:29 +0300 |
| commit | 40d53a7bc5ef18607266790e99fa693ba4344645 (patch) | |
| tree | 7e124a713889646e4e55c77e5d70d621fc572e6e /lib/std/child_process.zig | |
| parent | c95a9e978582ca96bf5462c6bfdd40b934e9ba92 (diff) | |
| parent | 700bb19a9053e236df6a9f15d435c427391e3ecf (diff) | |
| download | zig-40d53a7bc5ef18607266790e99fa693ba4344645.tar.gz zig-40d53a7bc5ef18607266790e99fa693ba4344645.zip | |
Merge branch 'master' into docs-local
Diffstat (limited to 'lib/std/child_process.zig')
| -rw-r--r-- | lib/std/child_process.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index 9094f1cb57..7fb663ac28 100644 --- a/lib/std/child_process.zig +++ b/lib/std/child_process.zig @@ -365,7 +365,8 @@ pub const ChildProcess = struct { os.setreuid(uid, uid) catch |err| forkChildErrReport(err_pipe[1], err); } - os.execve(self.allocator, self.argv, env_map) catch |err| forkChildErrReport(err_pipe[1], err); + const err = os.execvpe(self.allocator, self.argv, env_map); + forkChildErrReport(err_pipe[1], err); } // we are the parent |
