Fixed a build error for single-threaded Linux
This commit is contained in:
@@ -823,9 +823,9 @@ int os_exec(const char *program, const char *arg, int wait_completion)
|
|||||||
pid_t pid;
|
pid_t pid;
|
||||||
int pid_status;
|
int pid_status;
|
||||||
|
|
||||||
pid = fork();
|
pid = vfork();
|
||||||
if (pid < 0) {
|
if (pid < 0) {
|
||||||
perror("fork");
|
perror("vfork");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user