mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Add a required NULL to execl
And add a more descriptive error for issue #100
This commit is contained in:
parent
74e26d6f63
commit
f09ce2a96c
@ -182,8 +182,11 @@ static int run_dual_client_tests(void)
|
|||||||
int child = fork();
|
int child = fork();
|
||||||
if (child == 0) {
|
if (child == 0) {
|
||||||
/* Relaunch self with -r (request and wait for signal) */
|
/* Relaunch self with -r (request and wait for signal) */
|
||||||
if (execl(mypath, mypath, "-r") == -1) {
|
if (execl(mypath, mypath, "-r", (char *)NULL) == -1) {
|
||||||
fprintf(stderr, "ERROR: failed to re-launch self with execv: %s\n", strerror(errno));
|
fprintf(stderr,
|
||||||
|
"ERROR: failed to re-launch self (%s) with execv: %s\n",
|
||||||
|
mypath,
|
||||||
|
strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user