aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--infra/experimental/sanitizers/ExecSan/execSan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/experimental/sanitizers/ExecSan/execSan.cpp b/infra/experimental/sanitizers/ExecSan/execSan.cpp
index 1a6db7f2..b1c6f335 100644
--- a/infra/experimental/sanitizers/ExecSan/execSan.cpp
+++ b/infra/experimental/sanitizers/ExecSan/execSan.cpp
@@ -135,8 +135,8 @@ pid_t run_child(char **argv) {
fatal_log("Fork failed: %s", strerror(errno));
case 0:
raise(SIGSTOP);
- execv(argv[0], argv);
- fatal_log("execv: %s", strerror(errno));
+ execvp(argv[0], argv);
+ fatal_log("execvp: %s", strerror(errno));
}
return pid;
}