Browse Source
Merge pull request #9469 from Rubo3/patch-1
Use execlp instead of execl to avoid failure
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/yuzu/startup_checks.cpp
|
|
@ -186,7 +186,7 @@ pid_t SpawnChild(const char* arg0) { |
|
|
return pid; |
|
|
return pid; |
|
|
} else if (pid == 0) { |
|
|
} else if (pid == 0) { |
|
|
// child
|
|
|
// child
|
|
|
execl(arg0, arg0, nullptr); |
|
|
|
|
|
|
|
|
execlp(arg0, arg0, nullptr); |
|
|
const int err = errno; |
|
|
const int err = errno; |
|
|
fmt::print(stderr, "execl failed with error {}\n", err); |
|
|
fmt::print(stderr, "execl failed with error {}\n", err); |
|
|
_exit(0); |
|
|
_exit(0); |
|
|
|