diff options
| author | Marco Rubin <20150305+Rubo3@users.noreply.github.com> | 2022-12-18 14:03:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-18 14:03:26 +0000 |
| commit | ded2aae24f04d23f660c2da0be4b7f3eae01aa2e (patch) | |
| tree | 343d23b5e2878e0cbc4657758e8d62e369c25ebe | |
| parent | 7479b381faabe79e8d332e4000d036ab25403ea8 (diff) | |
Use execlp instead of execl to avoid failure
| -rw-r--r-- | src/yuzu/startup_checks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/startup_checks.cpp b/src/yuzu/startup_checks.cpp index 5638183629..9f702fe95e 100644 --- a/src/yuzu/startup_checks.cpp +++ b/src/yuzu/startup_checks.cpp @@ -186,7 +186,7 @@ pid_t SpawnChild(const char* arg0) { return pid; } else if (pid == 0) { // child - execl(arg0, arg0, nullptr); + execlp(arg0, arg0, nullptr); const int err = errno; fmt::print(stderr, "execl failed with error {}\n", err); _exit(0); |
