diff options
| author | 2022-12-18 14:03:26 +0000 | |
|---|---|---|
| committer | 2022-12-18 14:03:26 +0000 | |
| commit | 56b0f979ebb3b1164a0e5d11fae186570c73e015 (patch) | |
| tree | 343d23b5e2878e0cbc4657758e8d62e369c25ebe | |
| parent | Enable compiler optimizations and enforce x86-64-v2 on GCC/Clang (#9442) (diff) | |
| download | yuzu-56b0f979ebb3b1164a0e5d11fae186570c73e015.tar.gz yuzu-56b0f979ebb3b1164a0e5d11fae186570c73e015.tar.xz yuzu-56b0f979ebb3b1164a0e5d11fae186570c73e015.zip | |
Use execlp instead of execl to avoid failure
Diffstat (limited to '')
| -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 563818362..9f702fe95 100644 --- a/src/yuzu/startup_checks.cpp +++ b/src/yuzu/startup_checks.cpp | |||
| @@ -186,7 +186,7 @@ pid_t SpawnChild(const char* arg0) { | |||
| 186 | return pid; | 186 | return pid; |
| 187 | } else if (pid == 0) { | 187 | } else if (pid == 0) { |
| 188 | // child | 188 | // child |
| 189 | execl(arg0, arg0, nullptr); | 189 | execlp(arg0, arg0, nullptr); |
| 190 | const int err = errno; | 190 | const int err = errno; |
| 191 | fmt::print(stderr, "execl failed with error {}\n", err); | 191 | fmt::print(stderr, "execl failed with error {}\n", err); |
| 192 | _exit(0); | 192 | _exit(0); |